summaryrefslogtreecommitdiffstats
path: root/sys/netipx
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2009-05-25 11:52:33 +0000
committerrwatson <rwatson@FreeBSD.org>2009-05-25 11:52:33 +0000
commit3e055e029877a757fd0ae8dad210d4a06904036c (patch)
treeaa5ff3e6ab7113c3937de2d6dc0444d59644f689 /sys/netipx
parent4fabf30357d7af0989b425e3954d9fdaa2a74e39 (diff)
downloadFreeBSD-src-3e055e029877a757fd0ae8dad210d4a06904036c.zip
FreeBSD-src-3e055e029877a757fd0ae8dad210d4a06904036c.tar.gz
Prefer NULL to 0 for pointer assignments.
MFC after: 1 month
Diffstat (limited to 'sys/netipx')
-rw-r--r--sys/netipx/spx_usrreq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netipx/spx_usrreq.c b/sys/netipx/spx_usrreq.c
index 8717a2d..10f84c1 100644
--- a/sys/netipx/spx_usrreq.c
+++ b/sys/netipx/spx_usrreq.c
@@ -677,7 +677,7 @@ send:
/*
* Find requested packet.
*/
- si = 0;
+ si = NULL;
if (len > 0) {
cb->s_want = cb->s_snxt;
for (m = sb->sb_mb; m != NULL; m = m->m_nextpkt) {
@@ -690,7 +690,7 @@ send:
if (si->si_seq == cb->s_snxt)
cb->s_snxt++;
else
- spxstat.spxs_sndvoid++, si = 0;
+ spxstat.spxs_sndvoid++, si = NULL;
}
}
OpenPOWER on IntegriCloud