From: David Schweikert Date: Fri, 2 May 2014 21:51:49 +0000 (+0200) Subject: test fix X-Git-Url: https://git.gsnw.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b779e14db63b92d346b82d503fb91c2c3c78cbf0;p=fping.git test fix --- diff --git a/src/fping.c b/src/fping.c index b62983c..d79d2eb 100644 --- a/src/fping.c +++ b/src/fping.c @@ -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;