Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/blacklist/port Use NULL instead of 0 (Pedro Gif...



details:   https://anonhg.NetBSD.org/src/rev/9d4c9dc74d79
branches:  trunk
changeset: 815758:9d4c9dc74d79
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Jun 01 22:57:51 2016 +0000

description:
Use NULL instead of 0 (Pedro Giffuni)

diffstat:

 external/bsd/blacklist/port/sockaddr_snprintf.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 13228ac5eb4e -r 9d4c9dc74d79 external/bsd/blacklist/port/sockaddr_snprintf.c
--- a/external/bsd/blacklist/port/sockaddr_snprintf.c   Wed Jun 01 22:48:55 2016 +0000
+++ b/external/bsd/blacklist/port/sockaddr_snprintf.c   Wed Jun 01 22:57:51 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sockaddr_snprintf.c,v 1.10 2016/04/05 12:28:57 christos Exp $  */
+/*     $NetBSD: sockaddr_snprintf.c,v 1.11 2016/06/01 22:57:51 christos Exp $  */
 
 /*-
  * Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: sockaddr_snprintf.c,v 1.10 2016/04/05 12:28:57 christos Exp $");
+__RCSID("$NetBSD: sockaddr_snprintf.c,v 1.11 2016/06/01 22:57:51 christos Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include <sys/param.h>
@@ -219,7 +219,7 @@
        case AF_LINK:
                sdl = ((const struct sockaddr_dl *)(const void *)sa);
                (void)strlcpy(addr = abuf, link_ntoa(sdl), sizeof(abuf));
-               if ((w = strchr(addr, ':')) != 0) {
+               if ((w = strchr(addr, ':')) != NULL) {
                        *w++ = '\0';
                        addr = w;
                }



Home | Main Index | Thread Index | Old Index