summaryrefslogtreecommitdiff
path: root/usr.bin/netstat
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2009-01-26 20:30:27 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2009-01-26 20:30:27 +0000
commitfb02e3d1609038ca7368abe50cfceb970a4aff8f (patch)
tree7e83102e701b74bbe9104876e80163acb8b9c205 /usr.bin/netstat
parent751e2463c7bb12819946af77cc4e2f7dbcbfbfee (diff)
NULL instead of 0 in comparison
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r--usr.bin/netstat/if.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/netstat/if.c b/usr.bin/netstat/if.c
index d6df072e899..a5ba2eaa05c 100644
--- a/usr.bin/netstat/if.c
+++ b/usr.bin/netstat/if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.c,v 1.58 2008/12/24 16:53:22 dhill Exp $ */
+/* $OpenBSD: if.c,v 1.59 2009/01/26 20:30:26 claudio Exp $ */
/* $NetBSD: if.c,v 1.16.4.2 1996/06/07 21:46:46 thorpej Exp $ */
/*
@@ -529,7 +529,7 @@ fetchifs(void)
else if (sdl->sdl_nlen > 0)
memcpy(name, sdl->sdl_data, sdl->sdl_nlen);
- if (interface != 0 && !strcmp(name, interface)) {
+ if (interface != NULL && !strcmp(name, interface)) {
strlcpy(ip_cur.ift_name, name,
sizeof(ip_cur.ift_name));
ip_cur.ift_ip = ifd->ifi_ipackets;