mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
libbluetooth: use NULL instead of zero for pointers.
This commit is contained in:
parent
50a7cc95da
commit
5eadfbfcd0
1 changed files with 2 additions and 2 deletions
|
|
@ -67,7 +67,7 @@ bt_gethostbyname(char const *name)
|
|||
while ((p = bt_gethostent()) != NULL) {
|
||||
if (strcasecmp(p->h_name, name) == 0)
|
||||
break;
|
||||
for (cp = p->h_aliases; *cp != 0; cp++)
|
||||
for (cp = p->h_aliases; *cp != NULL; cp++)
|
||||
if (strcasecmp(*cp, name) == 0)
|
||||
goto found;
|
||||
}
|
||||
|
|
@ -180,7 +180,7 @@ bt_getprotobyname(char const *name)
|
|||
while ((p = bt_getprotoent()) != NULL) {
|
||||
if (strcmp(p->p_name, name) == 0)
|
||||
break;
|
||||
for (cp = p->p_aliases; *cp != 0; cp++)
|
||||
for (cp = p->p_aliases; *cp != NULL; cp++)
|
||||
if (strcmp(*cp, name) == 0)
|
||||
goto found;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue