]> git.gsnw.org Git - fping.git/commitdiff
test fix
authorDavid Schweikert <david@schweikert.ch>
Fri, 2 May 2014 21:51:49 +0000 (23:51 +0200)
committerDavid Schweikert <david@schweikert.ch>
Fri, 2 May 2014 21:51:49 +0000 (23:51 +0200)
src/fping.c

index b62983cb9e587128ddfa46167e3c444f4a6c6b92..d79d2eb7bd7d25c3e9561ebb813cd6d74f201b25 100644 (file)
@@ -392,7 +392,7 @@ int main( int argc, char **argv )
             break;
         
         case 'r':
-            if(!(retry = ( unsigned int )atoi( optarg )))
+            if (!sscanf(optarg,"%i",&retry))
                 usage(1);
             break;