Compare and assign pointers with NULL in preference to 0.

This commit is contained in:
Robert Watson 2005-01-02 14:07:05 +00:00
parent 521a8487f5
commit 16b47e3540

View File

@ -358,7 +358,7 @@ spx_input(m, ipxp)
drop:
bad:
if (cb == 0 || cb->s_ipxpcb->ipxp_socket->so_options & SO_DEBUG ||
if (cb == NULL || cb->s_ipxpcb->ipxp_socket->so_options & SO_DEBUG ||
traceallspxs)
spx_trace(SA_DROP, (u_char)ostate, cb, &spx_savesi, 0);
m_freem(m);
@ -1678,7 +1678,7 @@ spx_close(cb)
}
m_free(dtom(cb->s_ipx));
FREE(cb, M_PCB);
ipxp->ipxp_pcb = 0;
ipxp->ipxp_pcb = NULL;
soisdisconnected(so);
ipx_pcbdetach(ipxp);
spxstat.spxs_closed++;