Code

use atoi for char* -> int conversion
authordwyip <dwyip@users.sourceforge.net>
Sat, 15 Jul 2006 22:15:26 +0000 (22:15 +0000)
committerdwyip <dwyip@users.sourceforge.net>
Sat, 15 Jul 2006 22:15:26 +0000 (22:15 +0000)
src/inkview.cpp

index 3caed0df5643239faf3c24f5ae0e714454c6ed28..95af5b73432b4596d485d4ae6ab720978e05b965 100644 (file)
@@ -184,7 +184,7 @@ main (int argc, const char **argv)
         switch(option) {
            case 't': // for timer
                 // fprintf(stderr, "set timer arg %s\n", optarg );
-               ss.timer = int(optarg); 
+               ss.timer = atoi(optarg);        
                num_parsed_options += 2; // 2 because of flag + option
                 break;
             case '?':