Module Name: src
Committed By: christos
Date: Wed Jun 1 22:58:52 UTC 2016
Modified Files:
src/lib/libutil: sockaddr_snprintf.c
Log Message:
Use NULL instead of 0.
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/lib/libutil/sockaddr_snprintf.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libutil/sockaddr_snprintf.c
diff -u src/lib/libutil/sockaddr_snprintf.c:1.12 src/lib/libutil/sockaddr_snprintf.c:1.13
--- src/lib/libutil/sockaddr_snprintf.c:1.12 Wed Apr 6 14:08:16 2016
+++ src/lib/libutil/sockaddr_snprintf.c Wed Jun 1 18:58:52 2016
@@ -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 @@ sockaddr_snprintf(char * const sbuf, con
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;
}