rbootd: use NULL instead of zero for pointers.

This commit is contained in:
Pedro F. Giffuni
2016-04-18 15:05:48 +00:00
parent f94033f407
commit 46266845a4
+2 -2
View File
@@ -241,7 +241,7 @@ BpfGetIntfName(char **errmsg)
ifrp = ibuf; ifrp = ibuf;
ifend = (struct ifreq *)((char *)ibuf + ifc.ifc_len); ifend = (struct ifreq *)((char *)ibuf + ifc.ifc_len);
mp = 0; mp = NULL;
minunit = 666; minunit = 666;
for (; ifrp < ifend; ++ifrp) { for (; ifrp < ifend; ++ifrp) {
if (ioctl(fd, SIOCGIFFLAGS, (char *)ifrp) < 0) { if (ioctl(fd, SIOCGIFFLAGS, (char *)ifrp) < 0) {
@@ -271,7 +271,7 @@ BpfGetIntfName(char **errmsg)
} }
(void) close(fd); (void) close(fd);
if (mp == 0) { if (mp == NULL) {
(void) strcpy(errbuf, "bpf: no interfaces found"); (void) strcpy(errbuf, "bpf: no interfaces found");
return(NULL); return(NULL);
} }