svn commit: r341768 - head/sbin/ping
Eugene Grosbein
eugen at FreeBSD.org
Sun Dec 9 21:11:16 UTC 2018
Author: eugen
Date: Sun Dec 9 21:11:15 2018
New Revision: 341768
URL: https://svnweb.freebsd.org/changeset/base/341768
Log:
ping(8): remove needless comparision with LONG_MAX
after unsigned long ultmp changed to long ltmp in r340245.
MFC after: 1 week
Modified:
head/sbin/ping/ping.c
Modified: head/sbin/ping/ping.c
==============================================================================
--- head/sbin/ping/ping.c Sun Dec 9 19:14:21 2018 (r341767)
+++ head/sbin/ping/ping.c Sun Dec 9 21:11:15 2018 (r341768)
@@ -313,7 +313,7 @@ main(int argc, char *const *argv)
break;
case 'c':
ltmp = strtol(optarg, &ep, 0);
- if (*ep || ep == optarg || ltmp > LONG_MAX || ltmp <=0)
+ if (*ep || ep == optarg || ltmp <=0)
errx(EX_USAGE,
"invalid count of packets to transmit: `%s'",
optarg);
More information about the svn-src-all
mailing list