diff options
author | maxim <maxim@FreeBSD.org> | 2003-01-23 12:54:11 +0000 |
---|---|---|
committer | maxim <maxim@FreeBSD.org> | 2003-01-23 12:54:11 +0000 |
commit | 118f887acc1e399857c2093a6b46bf5c0794cc48 (patch) | |
tree | 62437f1a38cd86722f7eb254920d446274c73de2 /sbin/ping | |
parent | 805247f240838bc463cd12a258ffbee793033e46 (diff) | |
download | FreeBSD-src-118f887acc1e399857c2093a6b46bf5c0794cc48.zip FreeBSD-src-118f887acc1e399857c2093a6b46bf5c0794cc48.tar.gz |
Anti-magic: s/255/MAXTTL/
Diffstat (limited to 'sbin/ping')
-rw-r--r-- | sbin/ping/ping.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c index 90c0b8a..2923cd3 100644 --- a/sbin/ping/ping.c +++ b/sbin/ping/ping.c @@ -324,7 +324,7 @@ main(argc, argv) break; case 'm': /* TTL */ ultmp = strtoul(optarg, &ep, 0); - if (*ep || ep == optarg || ultmp > 255) + if (*ep || ep == optarg || ultmp > MAXTTL) errx(EX_USAGE, "invalid TTL: `%s'", optarg); ttl = ultmp; options |= F_TTL; @@ -381,7 +381,7 @@ main(argc, argv) break; case 'T': /* multicast TTL */ ultmp = strtoul(optarg, &ep, 0); - if (*ep || ep == optarg || ultmp > 255) + if (*ep || ep == optarg || ultmp > MAXTTL) errx(EX_USAGE, "invalid multicast TTL: `%s'", optarg); mttl = ultmp; |