svn commit: r298213 - head/libexec/rbootd

Pedro F. Giffuni pfg at FreeBSD.org
Mon Apr 18 15:05:49 UTC 2016


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);
 	}


More information about the svn-src-head mailing list