summaryrefslogtreecommitdiffstats
path: root/sbin/ipfw/ipfw2.c
diff options
context:
space:
mode:
authormelifaro <melifaro@FreeBSD.org>2014-10-04 17:21:30 +0000
committermelifaro <melifaro@FreeBSD.org>2014-10-04 17:21:30 +0000
commit94289f5d3934e2c58e0829ac8c967da579783e2b (patch)
treeb81193fa894daca50c91c5811f29d892dc709c1d /sbin/ipfw/ipfw2.c
parent1e90e104a024e339c46de677d3823af61a5a59b2 (diff)
downloadFreeBSD-src-94289f5d3934e2c58e0829ac8c967da579783e2b.zip
FreeBSD-src-94289f5d3934e2c58e0829ac8c967da579783e2b.tar.gz
Fix GCC wardnings.
Diffstat (limited to 'sbin/ipfw/ipfw2.c')
-rw-r--r--sbin/ipfw/ipfw2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ipfw/ipfw2.c b/sbin/ipfw/ipfw2.c
index 6045776..ad2ae8b 100644
--- a/sbin/ipfw/ipfw2.c
+++ b/sbin/ipfw/ipfw2.c
@@ -3599,7 +3599,7 @@ chkarg:
errx(EX_USAGE, "missing argument for %s", *(av - 1));
if (isdigit(**av)) {
action->arg1 = strtoul(*av, NULL, 10);
- if (action->arg1 <= 0 || action->arg1 >= IP_FW_TARG)
+ if (action->arg1 <= 0 || action->arg1 >= IP_FW_TABLEARG)
errx(EX_DATAERR, "illegal argument for %s",
*(av - 1));
} else if (_substrcmp(*av, "tablearg") == 0) {
OpenPOWER on IntegriCloud