diff --git a/libexec/rbootd/bpf.c b/libexec/rbootd/bpf.c index 6291f1e31dd7..bfe20adc426e 100644 --- a/libexec/rbootd/bpf.c +++ b/libexec/rbootd/bpf.c @@ -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); }