summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2015-06-21 12:11:13 +0000
committerclaudio <claudio@openbsd.org>2015-06-21 12:11:13 +0000
commit09d153b3bef9d3e04b80ca90f463eb2d74361904 (patch)
tree5d770590f74bc08c61acd32e48e3686067b65e12
parentJust return if nmemb is 0. Avoids a NULL dereference and is (diff)
downloadwireguard-openbsd-09d153b3bef9d3e04b80ca90f463eb2d74361904.tar.xz
wireguard-openbsd-09d153b3bef9d3e04b80ca90f463eb2d74361904.zip
There is no need to include sys/ucred.h. Only sys/file.h is needed for the
DTYPE defines.
-rw-r--r--usr.bin/netstat/inet.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c
index b6ee63c31ee..2c0e46d370a 100644
--- a/usr.bin/netstat/inet.c
+++ b/usr.bin/netstat/inet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inet.c,v 1.142 2015/04/16 19:24:13 markus Exp $ */
+/* $OpenBSD: inet.c,v 1.143 2015/06/21 12:11:13 claudio Exp $ */
/* $NetBSD: inet.c,v 1.14 1995/10/03 21:42:37 thorpej Exp $ */
/*
@@ -37,7 +37,6 @@
#include <sys/protosw.h>
#include <sys/sysctl.h>
#define _KERNEL
-#include <sys/ucred.h>
#include <sys/file.h>
#undef _KERNEL