summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2002-01-08 10:30:09 +0000
committermsmith <msmith@FreeBSD.org>2002-01-08 10:30:09 +0000
commite814937e0b8929748ad80c27bda32c1532131084 (patch)
tree87756bbfe1d58c7a73c041518b69b3229c19705f /sys
parentc2a5e58c0143752faa3597ccf673ffaaa480779b (diff)
downloadFreeBSD-src-e814937e0b8929748ad80c27bda32c1532131084.zip
FreeBSD-src-e814937e0b8929748ad80c27bda32c1532131084.tar.gz
Staticise private interface lists.
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if_faith.c2
-rw-r--r--sys/net/if_gif.c2
-rw-r--r--sys/net/if_ppp.c2
-rw-r--r--sys/net/if_pppvar.h2
-rw-r--r--sys/net/if_sl.c2
-rw-r--r--sys/net/if_stf.c2
6 files changed, 5 insertions, 7 deletions
diff --git a/sys/net/if_faith.c b/sys/net/if_faith.c
index 84de3ee..f779f35 100644
--- a/sys/net/if_faith.c
+++ b/sys/net/if_faith.c
@@ -103,7 +103,7 @@ static int faithmodevent __P((module_t, int, void *));
static MALLOC_DEFINE(M_FAITH, FAITHNAME, "Firewall Assisted Tunnel Interface");
static struct rman faithunits[1];
-LIST_HEAD(, faith_softc) faith_softc_list;
+static LIST_HEAD(, faith_softc) faith_softc_list;
int faith_clone_create __P((struct if_clone *, int *));
void faith_clone_destroy __P((struct ifnet *));
diff --git a/sys/net/if_gif.c b/sys/net/if_gif.c
index 22ebf8f..41c64ec 100644
--- a/sys/net/if_gif.c
+++ b/sys/net/if_gif.c
@@ -85,7 +85,7 @@
static MALLOC_DEFINE(M_GIF, "gif", "Generic Tunnel Interface");
static struct rman gifunits[1];
-LIST_HEAD(, gif_softc) gif_softc_list;
+static LIST_HEAD(, gif_softc) gif_softc_list;
void (*ng_gif_input_p)(struct ifnet *ifp, struct mbuf **mp, int af);
void (*ng_gif_input_orphan_p)(struct ifnet *ifp, struct mbuf *m, int af);
diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c
index 95b9684..8f7c38d 100644
--- a/sys/net/if_ppp.c
+++ b/sys/net/if_ppp.c
@@ -130,7 +130,7 @@
#include <net/ppp_comp.h>
#endif
-struct ppp_softc ppp_softc[NPPP];
+static struct ppp_softc ppp_softc[NPPP];
/* XXX layering violation */
extern void pppasyncattach __P((void *));
diff --git a/sys/net/if_pppvar.h b/sys/net/if_pppvar.h
index cc71846..cd6ea3d 100644
--- a/sys/net/if_pppvar.h
+++ b/sys/net/if_pppvar.h
@@ -98,8 +98,6 @@ struct ppp_softc {
int sc_rawin_count; /* # in sc_rawin */
};
-extern struct ppp_softc ppp_softc[];
-
struct ppp_softc *pppalloc __P((pid_t pid));
void pppdealloc __P((struct ppp_softc *sc));
int pppioctl __P((struct ppp_softc *sc, u_long cmd, caddr_t data,
diff --git a/sys/net/if_sl.c b/sys/net/if_sl.c
index 35d67e2..7d3b51d 100644
--- a/sys/net/if_sl.c
+++ b/sys/net/if_sl.c
@@ -165,7 +165,7 @@ static MALLOC_DEFINE(M_SL, "sl", "SLIP Interface");
#define ABT_COUNT 3 /* count of escapes for abort */
#define ABT_WINDOW (ABT_COUNT*2+2) /* in seconds - time to count */
-LIST_HEAD(sl_list, sl_softc) sl_list;
+static LIST_HEAD(sl_list, sl_softc) sl_list;
#define FRAME_END 0xc0 /* Frame End */
#define FRAME_ESCAPE 0xdb /* Frame Esc */
diff --git a/sys/net/if_stf.c b/sys/net/if_stf.c
index 41b5a92..b0344ab 100644
--- a/sys/net/if_stf.c
+++ b/sys/net/if_stf.c
@@ -135,7 +135,7 @@ struct stf_softc {
LIST_ENTRY(stf_softc) sc_list; /* all stf's are linked */
};
-LIST_HEAD(, stf_softc) stf_softc_list;
+static LIST_HEAD(, stf_softc) stf_softc_list;
static MALLOC_DEFINE(M_STF, STFNAME, "6to4 Tunnel Interface");
static struct rman stfunits[1];
OpenPOWER on IntegriCloud