summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/unix.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2018-04-26 12:42:50 +0000
committerguenther <guenther@openbsd.org>2018-04-26 12:42:50 +0000
commitf414793931f0f39a413874f9e342e33d9fd35eac (patch)
tree2f4a2abfbaa234b7cf3ecdbab222b87a5d01ccb9 /usr.bin/netstat/unix.c
parentDo not try getnetbyname(3) if gethostbyname(3) returns no result. (diff)
downloadwireguard-openbsd-f414793931f0f39a413874f9e342e33d9fd35eac.tar.xz
wireguard-openbsd-f414793931f0f39a413874f9e342e33d9fd35eac.zip
Use <fcntl.h> instead of <sys/file.h> for open() and friends.
Delete a bunch of unnecessary #includes and sort to match style(9) while doing the above cleanup. ok deraadt@ krw@
Diffstat (limited to 'usr.bin/netstat/unix.c')
-rw-r--r--usr.bin/netstat/unix.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/netstat/unix.c b/usr.bin/netstat/unix.c
index 19af38ba091..2d939b667a5 100644
--- a/usr.bin/netstat/unix.c
+++ b/usr.bin/netstat/unix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: unix.c,v 1.31 2018/01/05 10:41:24 mpi Exp $ */
+/* $OpenBSD: unix.c,v 1.32 2018/04/26 12:42:51 guenther Exp $ */
/* $NetBSD: unix.c,v 1.13 1995/10/03 21:42:48 thorpej Exp $ */
/*-
@@ -41,7 +41,6 @@
#include <sys/un.h>
#include <sys/unpcb.h>
#include <sys/ucred.h>
-#include <sys/file.h>
#include <netinet/in.h>