From 65c3a67d23ba7eec4d6bb10ba4664def8efef068 Mon Sep 17 00:00:00 2001 From: Eugene Grosbein Date: Sun, 9 Dec 2018 21:11:15 +0000 Subject: [PATCH] ping(8): remove needless comparision with LONG_MAX after unsigned long ultmp changed to long ltmp in r340245. MFC after: 1 week --- sbin/ping/ping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c index 47ebae4252e3..80c67af23aa9 100644 --- a/sbin/ping/ping.c +++ b/sbin/ping/ping.c @@ -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);