summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2016-09-15 01:01:07 +0000
committerdlg <dlg@openbsd.org>2016-09-15 01:01:07 +0000
commit475ce4ffa1896c58aec2e11024d85f164c33ea2f (patch)
treee4f8a92b79ac4d93f75dd1975945efc85ea32745
parentuse static in the right places to seperate modules better (diff)
downloadwireguard-openbsd-475ce4ffa1896c58aec2e11024d85f164c33ea2f.tar.xz
wireguard-openbsd-475ce4ffa1896c58aec2e11024d85f164c33ea2f.zip
dont #define _KERNEL around some #includes
the data structures are now readable without _KERNEL needing to be defined. ok deraadt@ there's probably a lot more of these that can be cleaned up if anyone is interested in looking into it.
-rw-r--r--usr.bin/netstat/route.c4
-rw-r--r--usr.bin/netstat/unix.c4
2 files changed, 2 insertions, 6 deletions
diff --git a/usr.bin/netstat/route.c b/usr.bin/netstat/route.c
index 41bc572a660..64531d4d509 100644
--- a/usr.bin/netstat/route.c
+++ b/usr.bin/netstat/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.100 2016/08/27 04:13:43 guenther Exp $ */
+/* $OpenBSD: route.c,v 1.101 2016/09/15 01:01:07 dlg Exp $ */
/* $NetBSD: route.c,v 1.15 1996/05/07 02:55:06 thorpej Exp $ */
/*
@@ -38,10 +38,8 @@
#include <net/if.h>
#include <net/if_dl.h>
#include <net/if_types.h>
-#define _KERNEL
#include <net/route.h>
#include <netinet/ip_ipsp.h>
-#undef _KERNEL
#include <netinet/in.h>
#include <arpa/inet.h>
diff --git a/usr.bin/netstat/unix.c b/usr.bin/netstat/unix.c
index 4888469441d..f81a6374c07 100644
--- a/usr.bin/netstat/unix.c
+++ b/usr.bin/netstat/unix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: unix.c,v 1.29 2016/08/27 04:07:42 guenther Exp $ */
+/* $OpenBSD: unix.c,v 1.30 2016/09/15 01:01:08 dlg Exp $ */
/* $NetBSD: unix.c,v 1.13 1995/10/03 21:42:48 thorpej Exp $ */
/*-
@@ -41,10 +41,8 @@
#include <sys/time.h>
#include <sys/un.h>
#include <sys/unpcb.h>
-#define _KERNEL
#include <sys/ucred.h>
#include <sys/file.h>
-#undef _KERNEL
#include <netinet/in.h>