Source-Changes-HG archive

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

[src/trunk]: src/lib/libutil Use NULL instead of 0.



details:   https://anonhg.NetBSD.org/src/rev/d8d7fda62364
branches:  trunk
changeset: 345617:d8d7fda62364
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Jun 01 22:58:52 2016 +0000

description:
Use NULL instead of 0.

diffstat:

 lib/libutil/sockaddr_snprintf.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 9c1d3f0cde10 -r d8d7fda62364 lib/libutil/sockaddr_snprintf.c
--- a/lib/libutil/sockaddr_snprintf.c   Wed Jun 01 22:57:51 2016 +0000
+++ b/lib/libutil/sockaddr_snprintf.c   Wed Jun 01 22:58:52 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sockaddr_snprintf.c,v 1.12 2016/04/06 18:08:16 christos Exp $  */
+/*     $NetBSD: sockaddr_snprintf.c,v 1.13 2016/06/01 22:58:52 christos Exp $  */
 
 /*-
  * Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: sockaddr_snprintf.c,v 1.12 2016/04/06 18:08:16 christos Exp $");
+__RCSID("$NetBSD: sockaddr_snprintf.c,v 1.13 2016/06/01 22:58:52 christos Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include <sys/types.h>
@@ -166,7 +166,7 @@
                            sdl->sdl_index);
                } else {
                        (void)strlcpy(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