summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2002-07-03 21:19:09 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2002-07-03 21:19:09 +0000
commiteb8b984055f8fb6ff8166bb0fd825d0476a2bc93 (patch)
tree3da86c45136132455aa82d11f2f95d7f4a6b812b /sys/net
parenteb5c5be45939713345204664aa86051b24effc40 (diff)
Change all variables definitions (int foo) in sys/sys/*.h to variable
declarations (extern int foo), and compensate in the appropriate locations.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if.c4
-rw-r--r--sys/net/if.h10
2 files changed, 8 insertions, 6 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index df8c94bcaaa..3c8a4472731 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.c,v 1.62 2002/06/30 13:04:35 itojun Exp $ */
+/* $OpenBSD: if.c,v 1.63 2002/07/03 21:19:08 miod Exp $ */
/* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */
/*
@@ -140,6 +140,8 @@ ifinit()
int if_index = 0;
struct ifaddr **ifnet_addrs = NULL;
struct ifnet **ifindex2ifnet = NULL;
+struct ifnet_head ifnet;
+struct ifnet *lo0ifp;
/*
* Attach an interface to the
diff --git a/sys/net/if.h b/sys/net/if.h
index 165a6a9e869..fde45d75428 100644
--- a/sys/net/if.h
+++ b/sys/net/if.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.h,v 1.39 2002/06/30 13:04:35 itojun Exp $ */
+/* $OpenBSD: if.h,v 1.40 2002/07/03 21:19:08 miod Exp $ */
/* $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $ */
/*
@@ -528,10 +528,10 @@ do { \
#define IFQ_INC_DROPS(ifq) ((ifq)->ifq_drops++)
#define IFQ_SET_MAXLEN(ifq, len) ((ifq)->ifq_maxlen = (len))
-struct ifnet_head ifnet;
-struct ifnet **ifindex2ifnet;
-struct ifnet *lo0ifp;
-int if_index;
+extern struct ifnet_head ifnet;
+extern struct ifnet **ifindex2ifnet;
+extern struct ifnet *lo0ifp;
+extern int if_index;
void ether_ifattach(struct ifnet *);
void ether_ifdetach(struct ifnet *);