From: Sepherosa Ziehau Date: Sat, 6 Sep 2008 06:09:42 +0000 (+0000) Subject: - Staticize lo{output,ioctl} X-Git-Tag: v2.1.1~481 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/7d982e78a25bed7cf330d9b2d9d6f21ce5583152 - Staticize lo{output,ioctl} - Regroup function declaration --- diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c index 584d70e106..0bf18d2451 100644 --- a/sys/net/if_loop.c +++ b/sys/net/if_loop.c @@ -32,7 +32,7 @@ * * @(#)if_loop.c 8.1 (Berkeley) 6/10/93 * $FreeBSD: src/sys/net/if_loop.c,v 1.47.2.9 2004/02/08 08:40:24 silby Exp $ - * $DragonFly: src/sys/net/if_loop.c,v 1.24 2008/09/06 05:46:47 sephe Exp $ + * $DragonFly: src/sys/net/if_loop.c,v 1.25 2008/09/06 06:09:42 sephe Exp $ */ /* @@ -88,18 +88,16 @@ #include #endif -int loioctl (struct ifnet *, u_long, caddr_t, struct ucred *); -static void lortrequest (int, struct rtentry *, struct rt_addrinfo *); - -static void loopattach (void *); +static void loopattach(void *); +static int looutput(struct ifnet *, struct mbuf *, struct sockaddr *, + struct rtentry *); +static int loioctl(struct ifnet *, u_long, caddr_t, struct ucred *); +static void lortrequest(int, struct rtentry *, struct rt_addrinfo *); #ifdef ALTQ -static void lo_altqstart(struct ifnet *); +static void lo_altqstart(struct ifnet *); #endif PSEUDO_SET(loopattach, if_loop); -int looutput (struct ifnet *ifp, - struct mbuf *m, struct sockaddr *dst, struct rtentry *rt); - #ifdef TINY_LOMTU #define LOMTU (1024+512) #elif defined(LARGE_LOMTU) @@ -139,7 +137,7 @@ loopattach(void *dummy) } } -int +static int looutput(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst, struct rtentry *rt) { @@ -385,7 +383,7 @@ lortrequest(int cmd, struct rtentry *rt, struct rt_addrinfo *info) * Process an ioctl request. */ /* ARGSUSED */ -int +static int loioctl(struct ifnet *ifp, u_long cmd, caddr_t data, struct ucred *cr) { struct ifaddr *ifa;