ping(8): remove needless comparision with LONG_MAX

after unsigned long ultmp changed to long ltmp in r340245.

MFC after:	1 week
This commit is contained in:
Eugene Grosbein 2018-12-09 21:11:15 +00:00
parent 2905d1ceaf
commit 65c3a67d23
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=341768

View file

@ -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);