mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-27 19:37:53 +01:00
rbootd: use NULL instead of zero for pointers.
This commit is contained in:
parent
f94033f407
commit
46266845a4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298213
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user