aboutsummaryrefslogtreecommitdiff
path: root/sys/net/if_loop.c
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2022-09-05 17:29:10 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2022-09-05 17:29:10 +0000
commitddc0ed5836ea4c380d56512a28d25787eefb47e9 (patch)
tree600066e3638aabcc3ccb2dce6c9997cb62653952 /sys/net/if_loop.c
parent0773b44e829421a806a89087009b294f16ee51fd (diff)
downloadsrc-ddc0ed5836ea4c380d56512a28d25787eefb47e9.tar.gz
src-ddc0ed5836ea4c380d56512a28d25787eefb47e9.zip
loop(4): make interface methods static
Diffstat (limited to 'sys/net/if_loop.c')
-rw-r--r--sys/net/if_loop.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c
index 643ef2240fe1..4f0b236f7f5e 100644
--- a/sys/net/if_loop.c
+++ b/sys/net/if_loop.c
@@ -90,8 +90,8 @@
CSUM_IP_CHECKED | CSUM_IP_VALID | \
CSUM_SCTP_VALID)
-int loioctl(struct ifnet *, u_long, caddr_t);
-int looutput(struct ifnet *ifp, struct mbuf *m,
+static int loioctl(struct ifnet *, u_long, caddr_t);
+static int looutput(struct ifnet *ifp, struct mbuf *m,
const struct sockaddr *dst, struct route *ro);
static int lo_clone_create(struct if_clone *, int, caddr_t);
static void lo_clone_destroy(struct ifnet *);
@@ -200,7 +200,7 @@ static moduledata_t loop_mod = {
DECLARE_MODULE(if_lo, loop_mod, SI_SUB_PROTO_IFATTACHDOMAIN, SI_ORDER_ANY);
-int
+static int
looutput(struct ifnet *ifp, struct mbuf *m, const struct sockaddr *dst,
struct route *ro)
{
@@ -369,8 +369,7 @@ if_simloop(struct ifnet *ifp, struct mbuf *m, int af, int hlen)
/*
* Process an ioctl request.
*/
-/* ARGSUSED */
-int
+static int
loioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct ifreq *ifr = (struct ifreq *)data;