Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Apr 2016 14:41:30 +0000 (UTC)
From:      "Pedro F. Giffuni" <pfg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r298208 - head/lib/libbluetooth
Message-ID:  <201604181441.u3IEfU1B092349@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604181441.u3IEfU1B092349>