[Commits] SDL: testoverlay2: use SDL_atoi, not atoi.

libsdl.org revision control commits-owner at libsdl.org
Mon Jan 22 06:46:53 PST 2018


details:   https://hg.libsdl.org/SDL/rev/b359333bdc52
changeset: 11834:b359333bdc52
user:      Ryan C. Gordon <icculus at icculus.org>
date:      Mon Jan 22 09:46:48 2018 -0500
description:
testoverlay2: use SDL_atoi, not atoi.

diffstat:

 test/testoverlay2.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r ef7abee0f838 -r b359333bdc52 test/testoverlay2.c
--- a/test/testoverlay2.c	Mon Jan 22 09:45:16 2018 -0500
+++ b/test/testoverlay2.c	Mon Jan 22 09:46:48 2018 -0500
@@ -254,7 +254,7 @@
     while (argc > 1) {
         if (strcmp(argv[1], "-fps") == 0) {
             if (argv[2]) {
-                fps = atoi(argv[2]);
+                fps = SDL_atoi(argv[2]);
                 if (fps == 0) {
                     SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
                             "The -fps option requires an argument [from 1 to 1000], default is 12.\n");
@@ -278,7 +278,7 @@
             argc -= 1;
         } else if (strcmp(argv[1], "-scale") == 0) {
             if (argv[2]) {
-                scale = atoi(argv[2]);
+                scale = SDL_atoi(argv[2]);
                 if (scale == 0) {
                     SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
                             "The -scale option requires an argument [from 1 to 50], default is 5.\n");


More information about the commits mailing list