pf: fix some cc --analyze warnings
Reviewed by: kp Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
225639e7db
commit
bcd4c17cca
@ -2474,7 +2474,7 @@ VNET_SYSINIT(vnet_pfsync_init, SI_SUB_PROTO_FIREWALL, SI_ORDER_ANY,
|
||||
static void
|
||||
vnet_pfsync_uninit(const void *unused __unused)
|
||||
{
|
||||
int ret;
|
||||
int ret __diagused;
|
||||
|
||||
pfsync_pointers_uninit();
|
||||
|
||||
|
@ -5612,7 +5612,7 @@ hook_pf(void)
|
||||
{
|
||||
struct pfil_hook_args pha;
|
||||
struct pfil_link_args pla;
|
||||
int ret;
|
||||
int ret __diagused;
|
||||
|
||||
if (V_pf_pfil_hooked)
|
||||
return;
|
||||
|
@ -1002,7 +1002,7 @@ pf_refragment6(struct ifnet *ifp, struct mbuf **m0, struct m_tag *mtag)
|
||||
DPFPRINTF(("refragment error %d\n", error));
|
||||
action = PF_DROP;
|
||||
}
|
||||
for (t = m; m; m = t) {
|
||||
for (; m; m = t) {
|
||||
t = m->m_nextpkt;
|
||||
m->m_nextpkt = NULL;
|
||||
m->m_flags |= M_SKIP_FIREWALL;
|
||||
|
Loading…
Reference in New Issue
Block a user