summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/contrib/pf/net/if_pflog.c8
-rw-r--r--sys/contrib/pf/net/if_pfsync.c8
-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
6 files changed, 24 insertions, 24 deletions
diff --git a/sys/contrib/pf/net/if_pflog.c b/sys/contrib/pf/net/if_pflog.c
index ca7b401..d267f72 100644
--- a/sys/contrib/pf/net/if_pflog.c
+++ b/sys/contrib/pf/net/if_pflog.c
@@ -104,8 +104,8 @@ struct pflog_softc pflogif[NPFLOG];
#endif
#ifdef __FreeBSD__
-void pflog_clone_destroy(struct ifnet *);
-int pflog_clone_create(struct if_clone *, int);
+static void pflog_clone_destroy(struct ifnet *);
+static int pflog_clone_create(struct if_clone *, int);
#else
void pflogattach(int);
#endif
@@ -125,7 +125,7 @@ static LIST_HEAD(pflog_list, pflog_softc) pflog_list;
struct if_clone pflog_cloner = IF_CLONE_INITIALIZER(PFLOGNAME,
pflog_clone_create, pflog_clone_destroy, 1, IF_MAXUNIT);
-void
+static void
pflog_clone_destroy(struct ifnet *ifp)
{
struct pflog_softc *sc;
@@ -143,7 +143,7 @@ pflog_clone_destroy(struct ifnet *ifp)
free(sc, M_PFLOG);
}
-int
+static int
pflog_clone_create(struct if_clone *ifc, int unit)
{
struct pflog_softc *sc;
diff --git a/sys/contrib/pf/net/if_pfsync.c b/sys/contrib/pf/net/if_pfsync.c
index dbef4e6..b47fc14 100644
--- a/sys/contrib/pf/net/if_pfsync.c
+++ b/sys/contrib/pf/net/if_pfsync.c
@@ -95,8 +95,8 @@ struct pfsync_softc pfsyncif;
#endif
#ifdef __FreeBSD__
-void pfsync_clone_destroy(struct ifnet *);
-int pfsync_clone_create(struct if_clone *, int);
+static void pfsync_clone_destroy(struct ifnet *);
+static int pfsync_clone_create(struct if_clone *, int);
#else
void pfsyncattach(int);
#endif
@@ -120,7 +120,7 @@ static LIST_HEAD(pfsync_list, pfsync_softc) pfsync_list;
struct if_clone pfsync_cloner = IF_CLONE_INITIALIZER(PFSYNCNAME,
pfsync_clone_create, pfsync_clone_destroy, 1, IF_MAXUNIT);
-void
+static void
pfsync_clone_destroy(struct ifnet *ifp)
{
struct pfsync_softc *sc;
@@ -141,7 +141,7 @@ pfsync_clone_destroy(struct ifnet *ifp)
free(sc, M_PFSYNC);
}
-int
+static int
pfsync_clone_create(struct if_clone *ifc, int unit)
{
struct pfsync_softc *sc;
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