From a25f94b5ae47af3cd364faa45ba35b34610eb8e9 Mon Sep 17 00:00:00 2001 From: rwatson Date: Thu, 10 May 2007 15:58:48 +0000 Subject: Move universally to ANSI C function declarations, with relatively consistent style(9)-ish layout. --- sys/netinet/in_gif.c | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) (limited to 'sys/netinet/in_gif.c') diff --git a/sys/netinet/in_gif.c b/sys/netinet/in_gif.c index aac8208..e70a6f8 100644 --- a/sys/netinet/in_gif.c +++ b/sys/netinet/in_gif.c @@ -88,10 +88,7 @@ SYSCTL_INT(_net_inet_ip, IPCTL_GIF_TTL, gifttl, CTLFLAG_RW, &ip_gif_ttl, 0, ""); int -in_gif_output(ifp, family, m) - struct ifnet *ifp; - int family; - struct mbuf *m; +in_gif_output(struct ifnet *ifp, int family, struct mbuf *m) { struct gif_softc *sc = ifp->if_softc; struct sockaddr_in *dst = (struct sockaddr_in *)&sc->gif_ro.ro_dst; @@ -238,9 +235,7 @@ in_gif_output(ifp, family, m) } void -in_gif_input(m, off) - struct mbuf *m; - int off; +in_gif_input(struct mbuf *m, int off) { struct ifnet *gifp = NULL; struct gif_softc *sc; @@ -334,10 +329,7 @@ in_gif_input(m, off) * validate outer address. */ static int -gif_validate4(ip, sc, ifp) - const struct ip *ip; - struct gif_softc *sc; - struct ifnet *ifp; +gif_validate4(const struct ip *ip, struct gif_softc *sc, struct ifnet *ifp) { struct sockaddr_in *src, *dst; struct in_ifaddr *ia4; @@ -396,11 +388,7 @@ gif_validate4(ip, sc, ifp) * matched the physical addr family. see gif_encapcheck(). */ int -gif_encapcheck4(m, off, proto, arg) - const struct mbuf *m; - int off; - int proto; - void *arg; +gif_encapcheck4(const struct mbuf *m, int off, int proto, void *arg) { struct ip ip; struct gif_softc *sc; @@ -417,8 +405,7 @@ gif_encapcheck4(m, off, proto, arg) } int -in_gif_attach(sc) - struct gif_softc *sc; +in_gif_attach(struct gif_softc *sc) { sc->encap_cookie4 = encap_attach_func(AF_INET, -1, gif_encapcheck, &in_gif_protosw, sc); @@ -428,8 +415,7 @@ in_gif_attach(sc) } int -in_gif_detach(sc) - struct gif_softc *sc; +in_gif_detach(struct gif_softc *sc) { int error; -- cgit v1.1