svn commit: r298208 - head/lib/libbluetooth

Pedro F. Giffuni pfg at FreeBSD.org
Mon Apr 18 14:41:32 UTC 2016


Author: pfg
Date: Mon Apr 18 14:41:30 2016
New Revision: 298208
URL: https://svnweb.freebsd.org/changeset/base/298208

Log:
  libbluetooth: use NULL instead of zero for pointers.

Modified:
  head/lib/libbluetooth/bluetooth.c

Modified: head/lib/libbluetooth/bluetooth.c
==============================================================================
--- head/lib/libbluetooth/bluetooth.c	Mon Apr 18 14:37:26 2016	(r298207)
+++ head/lib/libbluetooth/bluetooth.c	Mon Apr 18 14:41:30 2016	(r298208)
@@ -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;
 	}


More information about the svn-src-all mailing list