svn commit: r229729 - head/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Fri Jan 6 20:21:00 UTC 2012


Author: tuexen
Date: Fri Jan  6 20:20:59 2012
New Revision: 229729
URL: http://svn.freebsd.org/changeset/base/229729

Log:
  Use NULL instead of 0.
  
  MFC after: 1 month.

Modified:
  head/sys/netinet/sctputil.c

Modified: head/sys/netinet/sctputil.c
==============================================================================
--- head/sys/netinet/sctputil.c	Fri Jan  6 20:06:45 2012	(r229728)
+++ head/sys/netinet/sctputil.c	Fri Jan  6 20:20:59 2012	(r229729)
@@ -1460,7 +1460,7 @@ sctp_timeout_handler(void *t)
 	type = tmr->type;
 	if (inp) {
 		SCTP_INP_INCR_REF(inp);
-		if ((inp->sctp_socket == 0) &&
+		if ((inp->sctp_socket == NULL) &&
 		    ((tmr->type != SCTP_TIMER_TYPE_INPKILL) &&
 		    (tmr->type != SCTP_TIMER_TYPE_INIT) &&
 		    (tmr->type != SCTP_TIMER_TYPE_SEND) &&


More information about the svn-src-head mailing list