aboutsummaryrefslogtreecommitdiff
path: root/sbin/ipfw
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2019-02-07 21:41:27 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2019-02-07 21:41:27 +0000
commit10e3bebf9e4d5ec481b3e48ad3c70b0b58a43df4 (patch)
tree1ec5cc3a66aa936d818c52512f50b782f29d191b /sbin/ipfw
parent2b3d6647387f70a1776e71813bd792077f22cdc0 (diff)
downloadsrc-10e3bebf9e4d5ec481b3e48ad3c70b0b58a43df4.tar.gz
src-10e3bebf9e4d5ec481b3e48ad3c70b0b58a43df4.zip
Fix build of r343877
MFC after: 2 weeks X-MFC-with: r343877 Pointyhat to: bdrewery
Notes
Notes: svn path=/head/; revision=343880
Diffstat (limited to 'sbin/ipfw')
-rw-r--r--sbin/ipfw/tables.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/ipfw/tables.c b/sbin/ipfw/tables.c
index 3cb037802676..3fa806348a27 100644
--- a/sbin/ipfw/tables.c
+++ b/sbin/ipfw/tables.c
@@ -282,7 +282,7 @@ ipfw_table_handler(int ac, char *av[])
}
break;
case TOK_LIST:
- arg = is_all ? (void*)1 : (void*)0;
+ arg = is_all ? (void*)1 : NULL;
if (is_all == 0) {
ipfw_xtable_info i;
if ((error = table_get_info(&oh, &i)) != 0)
@@ -822,7 +822,9 @@ table_show_one(ipfw_xtable_info *i, void *arg)
{
ipfw_obj_header *oh;
int error;
- int is_all = (int)arg;
+ int is_all;
+
+ is_all = arg == NULL ? 0 : 1;
if ((error = table_do_get_list(i, &oh)) != 0) {
err(EX_OSERR, "Error requesting table %s list", i->tablename);