summaryrefslogtreecommitdiffstats
path: root/sys/netpfil
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2016-04-15 12:24:01 +0000
committerpfg <pfg@FreeBSD.org>2016-04-15 12:24:01 +0000
commitb756da144684c1bf8b79243980e281d0ce2ed41d (patch)
treed4339827d0b98572dd8e493e4fe40e27c0ac9c90 /sys/netpfil
parent2e90b92e02690982a14c95510860ba560db7a06f (diff)
downloadFreeBSD-src-b756da144684c1bf8b79243980e281d0ce2ed41d.zip
FreeBSD-src-b756da144684c1bf8b79243980e281d0ce2ed41d.tar.gz
netpfil: for pointers replace 0 with NULL.
These are mostly cosmetical, no functional change. Found with devel/coccinelle. Reviewed by: ae
Diffstat (limited to 'sys/netpfil')
-rw-r--r--sys/netpfil/ipfw/ip_fw_iface.c2
-rw-r--r--sys/netpfil/ipfw/ip_fw_sockopt.c2
-rw-r--r--sys/netpfil/ipfw/ip_fw_table.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/sys/netpfil/ipfw/ip_fw_iface.c b/sys/netpfil/ipfw/ip_fw_iface.c
index b7c450c..07d24de 100644
--- a/sys/netpfil/ipfw/ip_fw_iface.c
+++ b/sys/netpfil/ipfw/ip_fw_iface.c
@@ -471,7 +471,7 @@ export_iface_internal(struct namedobj_instance *ii, struct named_object *no,
da = (struct dump_iface_args *)arg;
i = (ipfw_iface_info *)ipfw_get_sopt_space(da->sd, sizeof(*i));
- KASSERT(i != 0, ("previously checked buffer is not enough"));
+ KASSERT(i != NULL, ("previously checked buffer is not enough"));
iif = (struct ipfw_iface *)no;
diff --git a/sys/netpfil/ipfw/ip_fw_sockopt.c b/sys/netpfil/ipfw/ip_fw_sockopt.c
index 00d1a0a..c63a303 100644
--- a/sys/netpfil/ipfw/ip_fw_sockopt.c
+++ b/sys/netpfil/ipfw/ip_fw_sockopt.c
@@ -2797,7 +2797,7 @@ dump_soptcodes(struct ip_fw_chain *chain, ip_fw3_opheader *op3,
for (n = 1; n <= count; n++) {
i = (ipfw_sopt_info *)ipfw_get_sopt_space(sd, sizeof(*i));
- KASSERT(i != 0, ("previously checked buffer is not enough"));
+ KASSERT(i != NULL, ("previously checked buffer is not enough"));
sh = &ctl3_handlers[n];
i->opcode = sh->opcode;
i->version = sh->version;
diff --git a/sys/netpfil/ipfw/ip_fw_table.c b/sys/netpfil/ipfw/ip_fw_table.c
index 4af7c88..175202a 100644
--- a/sys/netpfil/ipfw/ip_fw_table.c
+++ b/sys/netpfil/ipfw/ip_fw_table.c
@@ -2130,7 +2130,7 @@ export_table_internal(struct namedobj_instance *ni, struct named_object *no,
dta = (struct dump_table_args *)arg;
i = (ipfw_xtable_info *)ipfw_get_sopt_space(dta->sd, sizeof(*i));
- KASSERT(i != 0, ("previously checked buffer is not enough"));
+ KASSERT(i != NULL, ("previously checked buffer is not enough"));
export_table_info(dta->ch, (struct table_config *)no, i);
}
@@ -2746,7 +2746,7 @@ list_table_algo(struct ip_fw_chain *ch, ip_fw3_opheader *op3,
for (n = 1; n <= count; n++) {
i = (ipfw_ta_info *)ipfw_get_sopt_space(sd, sizeof(*i));
- KASSERT(i != 0, ("previously checked buffer is not enough"));
+ KASSERT(i != NULL, ("previously checked buffer is not enough"));
ta = tcfg->algo[n];
strlcpy(i->algoname, ta->name, sizeof(i->algoname));
i->type = ta->type;
OpenPOWER on IntegriCloud