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:
parent
2905d1ceaf
commit
65c3a67d23
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user