]> git.gsnw.org Git - fping.git/commitdiff
fix clang warning: comparison of unsigned expression < 0 is always false
authorDipen Lad <dipen.lad@gmail.com>
Sat, 20 Apr 2013 20:50:22 +0000 (21:50 +0100)
committerDipen Lad <dipen.lad@gmail.com>
Sat, 20 Apr 2013 20:50:22 +0000 (21:50 +0100)
src/fping.c

index c6becd9e2d94f8cc85d00902cc82771fefc40ae7..dd43500cffff4b79ca7968065a63938de9cf483f 100644 (file)
@@ -684,7 +684,7 @@ int main( int argc, char **argv )
 
     /* validate various option settings */
 
-    if (ttl < 0 || ttl > 255) {  
+    if (ttl > 255) {
         fprintf(stderr, "ping: ttl %u out of range\n", ttl);  
         usage(1);
     }