From 69fff78ca470688178ef18ab78a1e056c798bc0b Mon Sep 17 00:00:00 2001 From: Dipen Lad Date: Sat, 20 Apr 2013 21:50:22 +0100 Subject: [PATCH] fix clang warning: comparison of unsigned expression < 0 is always false --- src/fping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fping.c b/src/fping.c index c6becd9..dd43500 100644 --- a/src/fping.c +++ b/src/fping.c @@ -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); }