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;
        }
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to