From 2e8c1dd5a38efda364e76dce3be21f49afec6cc7 Mon Sep 17 00:00:00 2001 From: dwyip Date: Sat, 15 Jul 2006 22:15:26 +0000 Subject: [PATCH] use atoi for char* -> int conversion --- src/inkview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inkview.cpp b/src/inkview.cpp index 3caed0df5..95af5b734 100644 --- a/src/inkview.cpp +++ b/src/inkview.cpp @@ -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 '?': -- 2.30.2