From c829949efacb31ac7d8dc8d4df99d801a43a2fec Mon Sep 17 00:00:00 2001 From: glebius Date: Mon, 28 Oct 2013 08:03:40 +0000 Subject: - Make the prophecy from 1997 happen and remove if_var.h inclusion from if.h. - Remove unnecessary includes and declarations from if.h - Remove unnecessary includes and declarations from if_var.h [1] - Mark some declarations that are about to be removed in near future with comments, explaning why this declaration is still necessary. - Protect eventhandler declarations with #ifdef SYS_EVENTHANDLER_H. Obtained from: bdeBSD [1] Sponsored by: Netflix Sponsored by: Nginx, Inc. --- sys/net/if.h | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'sys/net/if.h') diff --git a/sys/net/if.h b/sys/net/if.h index 80a7112..cd9adb3 100644 --- a/sys/net/if.h +++ b/sys/net/if.h @@ -35,10 +35,6 @@ #include -#ifdef _KERNEL -#include -#endif - #if __BSD_VISIBLE /* * does not depend on on most other systems. This @@ -49,8 +45,6 @@ #include #include #endif - -struct ifnet; #endif /* @@ -537,10 +531,4 @@ struct if_nameindex *if_nameindex(void); unsigned int if_nametoindex(const char *); __END_DECLS #endif - -#ifdef _KERNEL -/* XXX - this should go away soon. */ -#include -#endif - #endif /* !_NET_IF_H_ */ -- cgit v1.1