Use 'NULL' in preference to '0' for pointer comparisons.

MFC after:	2 weeks
This commit is contained in:
Robert Watson 2005-01-02 01:51:18 +00:00
parent 5f311da2cc
commit 21275ec3db
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=139559

View file

@ -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;