diff options
author | rwatson <rwatson@FreeBSD.org> | 2005-01-02 14:07:05 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2005-01-02 14:07:05 +0000 |
commit | 440a81bafb7091acab806d2d3ccce487081f590b (patch) | |
tree | 5f1e73f4bf79e7d1c9406c0917cfceee6aec1316 /sys/netipx | |
parent | 9262f8ab0310974f709d31e829ecbcc2a07461fa (diff) | |
download | FreeBSD-src-440a81bafb7091acab806d2d3ccce487081f590b.zip FreeBSD-src-440a81bafb7091acab806d2d3ccce487081f590b.tar.gz |
Compare and assign pointers with NULL in preference to 0.
Diffstat (limited to 'sys/netipx')
-rw-r--r-- | sys/netipx/spx_usrreq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netipx/spx_usrreq.c b/sys/netipx/spx_usrreq.c index 493c481..4d42ce3 100644 --- a/sys/netipx/spx_usrreq.c +++ b/sys/netipx/spx_usrreq.c @@ -358,7 +358,7 @@ dropwithreset: 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++; |