summaryrefslogtreecommitdiffstats
path: root/sys/contrib/pf/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/contrib/pf/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/contrib/pf/net')
-rw-r--r--sys/contrib/pf/net/if_pflog.c8
-rw-r--r--sys/contrib/pf/net/if_pfsync.c8
2 files changed, 8 insertions, 8 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;
OpenPOWER on IntegriCloud