summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2004-04-14 00:57:49 +0000
committerbrooks <brooks@FreeBSD.org>2004-04-14 00:57:49 +0000
commit6a86b016720e6c490ba881c2bc0267b410e78005 (patch)
tree0f86b553c2697d1910c06cc355941a574f842b05 /sys/net
parent58455f9e3f869c3180a82c968b65beffd5360d9b (diff)
downloadFreeBSD-src-6a86b016720e6c490ba881c2bc0267b410e78005.zip
FreeBSD-src-6a86b016720e6c490ba881c2bc0267b410e78005.tar.gz
Staticize <if>_clone_{create,destroy} functions.
Reviewed by: mlaier
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_faith.c8
-rw-r--r--sys/net/if_gif.c8
-rw-r--r--sys/net/if_loop.c8
-rw-r--r--sys/net/if_stf.c8
4 files changed, 16 insertions, 16 deletions
diff --git a/sys/net/if_faith.c b/sys/net/if_faith.c
index dfe89c1..abfa758 100644
--- a/sys/net/if_faith.c
+++ b/sys/net/if_faith.c
@@ -99,8 +99,8 @@ static struct mtx faith_mtx;
static MALLOC_DEFINE(M_FAITH, FAITHNAME, "Firewall Assisted Tunnel Interface");
static LIST_HEAD(, faith_softc) faith_softc_list;
-int faith_clone_create(struct if_clone *, int);
-void faith_clone_destroy(struct ifnet *);
+static int faith_clone_create(struct if_clone *, int);
+static void faith_clone_destroy(struct ifnet *);
static void faith_destroy(struct faith_softc *);
struct if_clone faith_cloner = IF_CLONE_INITIALIZER(FAITHNAME,
@@ -157,7 +157,7 @@ static moduledata_t faith_mod = {
DECLARE_MODULE(if_faith, faith_mod, SI_SUB_PSEUDO, SI_ORDER_ANY);
MODULE_VERSION(if_faith, 1);
-int
+static int
faith_clone_create(ifc, unit)
struct if_clone *ifc;
int unit;
@@ -196,7 +196,7 @@ faith_destroy(struct faith_softc *sc)
free(sc, M_FAITH);
}
-void
+static void
faith_clone_destroy(ifp)
struct ifnet *ifp;
{
diff --git a/sys/net/if_gif.c b/sys/net/if_gif.c
index 2519192..60e6220 100644
--- a/sys/net/if_gif.c
+++ b/sys/net/if_gif.c
@@ -96,8 +96,8 @@ void (*ng_gif_input_orphan_p)(struct ifnet *ifp, struct mbuf *m, int af);
void (*ng_gif_attach_p)(struct ifnet *ifp);
void (*ng_gif_detach_p)(struct ifnet *ifp);
-int gif_clone_create(struct if_clone *, int);
-void gif_clone_destroy(struct ifnet *);
+static int gif_clone_create(struct if_clone *, int);
+static void gif_clone_destroy(struct ifnet *);
struct if_clone gif_cloner = IF_CLONE_INITIALIZER("gif",
gif_clone_create, gif_clone_destroy, 0, IF_MAXUNIT);
@@ -135,7 +135,7 @@ static int parallel_tunnels = 0;
SYSCTL_INT(_net_link_gif, OID_AUTO, parallel_tunnels, CTLFLAG_RW,
&parallel_tunnels, 0, "Allow parallel tunnels?");
-int
+static int
gif_clone_create(ifc, unit)
struct if_clone *ifc;
int unit;
@@ -208,7 +208,7 @@ gif_destroy(struct gif_softc *sc)
free(sc, M_GIF);
}
-void
+static void
gif_clone_destroy(ifp)
struct ifnet *ifp;
{
diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c
index 75dbd7f..adfad22 100644
--- a/sys/net/if_loop.c
+++ b/sys/net/if_loop.c
@@ -102,8 +102,8 @@ int loioctl(struct ifnet *, u_long, caddr_t);
static void lortrequest(int, struct rtentry *, struct rt_addrinfo *);
int looutput(struct ifnet *ifp, struct mbuf *m,
struct sockaddr *dst, struct rtentry *rt);
-int lo_clone_create(struct if_clone *, int);
-void lo_clone_destroy(struct ifnet *);
+static int lo_clone_create(struct if_clone *, int);
+static void lo_clone_destroy(struct ifnet *);
struct ifnet *loif = NULL; /* Used externally */
@@ -115,7 +115,7 @@ static LIST_HEAD(lo_list, lo_softc) lo_list;
struct if_clone lo_cloner = IF_CLONE_INITIALIZER(LONAME,
lo_clone_create, lo_clone_destroy, 1, IF_MAXUNIT);
-void
+static void
lo_clone_destroy(ifp)
struct ifnet *ifp;
{
@@ -134,7 +134,7 @@ lo_clone_destroy(ifp)
free(sc, M_LO);
}
-int
+static int
lo_clone_create(ifc, unit)
struct if_clone *ifc;
int unit;
diff --git a/sys/net/if_stf.c b/sys/net/if_stf.c
index 98e8ce2..fb6d6fe 100644
--- a/sys/net/if_stf.c
+++ b/sys/net/if_stf.c
@@ -172,14 +172,14 @@ static int stf_checkaddr6(struct stf_softc *, struct in6_addr *,
static void stf_rtrequest(int, struct rtentry *, struct rt_addrinfo *);
static int stf_ioctl(struct ifnet *, u_long, caddr_t);
-int stf_clone_create(struct if_clone *, int);
-void stf_clone_destroy(struct ifnet *);
+static int stf_clone_create(struct if_clone *, int);
+static void stf_clone_destroy(struct ifnet *);
/* only one clone is currently allowed */
struct if_clone stf_cloner =
IF_CLONE_INITIALIZER(STFNAME, stf_clone_create, stf_clone_destroy, 0, 0);
-int
+static int
stf_clone_create(ifc, unit)
struct if_clone *ifc;
int unit;
@@ -223,7 +223,7 @@ stf_destroy(struct stf_softc *sc)
free(sc, M_STF);
}
-void
+static void
stf_clone_destroy(ifp)
struct ifnet *ifp;
{
OpenPOWER on IntegriCloud