Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 May 2016 00:35:39 +0000 (UTC)
From:      Marcelo Araujo <araujo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r299875 - head/sbin/ping6
Message-ID:  <201605160035.u4G0ZdQE051564@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: araujo
Date: Mon May 16 00:35:39 2016
New Revision: 299875
URL: https://svnweb.freebsd.org/changeset/base/299875

Log:
  For pointers use NULL instead of 0.
  
  MFC after:	2 weeks.

Modified:
  head/sbin/ping6/ping6.c

Modified: head/sbin/ping6/ping6.c
==============================================================================
--- head/sbin/ping6/ping6.c	Mon May 16 00:34:48 2016	(r299874)
+++ head/sbin/ping6/ping6.c	Mon May 16 00:35:39 2016	(r299875)
@@ -916,7 +916,7 @@ main(int argc, char *argv[])
 			errx(1, "can't initialize rthdr");
 #else  /* old advanced API */
 		if ((scmsgp = (struct cmsghdr *)inet6_rthdr_init(scmsgp,
-		    IPV6_RTHDR_TYPE_0)) == 0)
+		    IPV6_RTHDR_TYPE_0)) == NULL)
 			errx(1, "can't initialize rthdr");
 #endif /* USE_RFC2292BIS */
 



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