mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-18 15:30:21 +00:00
netpfil: for pointers replace 0 with NULL.
These are mostly cosmetical, no functional change. Found with devel/coccinelle. Reviewed by: ae
This commit is contained in:
parent
8806325ade
commit
7a6ab8f19e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298048
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user