diff options
author | pfg <pfg@FreeBSD.org> | 2016-04-18 14:41:30 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-04-18 14:41:30 +0000 |
commit | 1bed3a70f7fc880e896598fea08e7a8e48cabf76 (patch) | |
tree | fa1a8a4269d1f6812bb34b4740bc49024b14d839 /lib | |
parent | 163ec53664d75a6d93af519b0f3eb2d8f24d46c2 (diff) | |
download | FreeBSD-src-1bed3a70f7fc880e896598fea08e7a8e48cabf76.zip FreeBSD-src-1bed3a70f7fc880e896598fea08e7a8e48cabf76.tar.gz |
libbluetooth: use NULL instead of zero for pointers.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libbluetooth/bluetooth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libbluetooth/bluetooth.c b/lib/libbluetooth/bluetooth.c index bbcf007..ad62a87 100644 --- a/lib/libbluetooth/bluetooth.c +++ b/lib/libbluetooth/bluetooth.c @@ -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; } |