Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 May 2009 11:52:33 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r192755 - head/sys/netipx
Message-ID:  <200905251152.n4PBqXic023003@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rwatson
Date: Mon May 25 11:52:33 2009
New Revision: 192755
URL: http://svn.freebsd.org/changeset/base/192755

Log:
  Prefer NULL to 0 for pointer assignments.
  
  MFC after:	1 month

Modified:
  head/sys/netipx/spx_usrreq.c

Modified: head/sys/netipx/spx_usrreq.c
==============================================================================
--- head/sys/netipx/spx_usrreq.c	Mon May 25 11:50:58 2009	(r192754)
+++ head/sys/netipx/spx_usrreq.c	Mon May 25 11:52:33 2009	(r192755)
@@ -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;
 		}
 	}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905251152.n4PBqXic023003>