summaryrefslogtreecommitdiffstats
path: root/sys/netipx/ipx_pcb.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2005-01-02 01:51:18 +0000
committerrwatson <rwatson@FreeBSD.org>2005-01-02 01:51:18 +0000
commitc52cecbfbdcae92e1a2283ab61126bf7b0a1ba82 (patch)
tree43dbffa1af05f5a4309de165ec15c6bfed4e2ca8 /sys/netipx/ipx_pcb.c
parentc79cd91efc05ca91a24c2adea62738a1e660528a (diff)
downloadFreeBSD-src-c52cecbfbdcae92e1a2283ab61126bf7b0a1ba82.zip
FreeBSD-src-c52cecbfbdcae92e1a2283ab61126bf7b0a1ba82.tar.gz
Use 'NULL' in preference to '0' for pointer comparisons.
MFC after: 2 weeks
Diffstat (limited to 'sys/netipx/ipx_pcb.c')
-rw-r--r--sys/netipx/ipx_pcb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netipx/ipx_pcb.c b/sys/netipx/ipx_pcb.c
index dbbfa21..1457511 100644
--- a/sys/netipx/ipx_pcb.c
+++ b/sys/netipx/ipx_pcb.c
@@ -92,7 +92,7 @@ ipx_pcbbind(ipxp, nam, td)
int tport = sipx->sipx_port;
sipx->sipx_port = 0; /* yech... */
- if (ifa_ifwithaddr((struct sockaddr *)sipx) == 0)
+ if (ifa_ifwithaddr((struct sockaddr *)sipx) == NULL)
return (EADDRNOTAVAIL);
sipx->sipx_port = tport;
}
@@ -272,7 +272,7 @@ ipx_pcbdetach(ipxp)
ACCEPT_LOCK();
SOCK_LOCK(so);
- so->so_pcb = 0;
+ so->so_pcb = NULL;
sotryfree(so);
if (ipxp->ipxp_route.ro_rt != NULL)
RTFREE(ipxp->ipxp_route.ro_rt);
@@ -316,7 +316,7 @@ ipx_pcblookup(faddr, lport, wildp)
u_short lport;
int wildp;
{
- register struct ipxpcb *ipxp, *match = 0;
+ register struct ipxpcb *ipxp, *match = NULL;
int matchwild = 3, wildcard;
u_short fport;
OpenPOWER on IntegriCloud