Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Apr 2016 15:05:48 +0000 (UTC)
From:      "Pedro F. Giffuni" <pfg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r298213 - head/libexec/rbootd
Message-ID:  <201604181505.u3IF5mwv000584@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pfg
Date: Mon Apr 18 15:05:48 2016
New Revision: 298213
URL: https://svnweb.freebsd.org/changeset/base/298213

Log:
  rbootd: use NULL instead of zero for pointers.

Modified:
  head/libexec/rbootd/bpf.c

Modified: head/libexec/rbootd/bpf.c
==============================================================================
--- head/libexec/rbootd/bpf.c	Mon Apr 18 15:01:59 2016	(r298212)
+++ head/libexec/rbootd/bpf.c	Mon Apr 18 15:05:48 2016	(r298213)
@@ -241,7 +241,7 @@ BpfGetIntfName(char **errmsg)
 	ifrp = ibuf;
 	ifend = (struct ifreq *)((char *)ibuf + ifc.ifc_len);
 
-	mp = 0;
+	mp = NULL;
 	minunit = 666;
 	for (; ifrp < ifend; ++ifrp) {
 		if (ioctl(fd, SIOCGIFFLAGS, (char *)ifrp) < 0) {
@@ -271,7 +271,7 @@ BpfGetIntfName(char **errmsg)
 	}
 
 	(void) close(fd);
-	if (mp == 0) {
+	if (mp == NULL) {
 		(void) strcpy(errbuf, "bpf: no interfaces found");
 		return(NULL);
 	}



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