aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/in_gif.c
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2007-05-10 15:58:48 +0000
committerRobert Watson <rwatson@FreeBSD.org>2007-05-10 15:58:48 +0000
commitf2565d68a4e5922928b92ad6043be96ada8cb7b3 (patch)
tree2075644406447dff1b0f6bb1567b5058f2fa628c /sys/netinet/in_gif.c
parentc2b49d4f4958d9885b457c3c590ccaa14c6261b4 (diff)
downloadsrc-f2565d68a4e5922928b92ad6043be96ada8cb7b3.tar.gz
src-f2565d68a4e5922928b92ad6043be96ada8cb7b3.zip
Move universally to ANSI C function declarations, with relatively
consistent style(9)-ish layout.
Notes
Notes: svn path=/head/; revision=169454
Diffstat (limited to 'sys/netinet/in_gif.c')
-rw-r--r--sys/netinet/in_gif.c26
1 files changed, 6 insertions, 20 deletions
diff --git a/sys/netinet/in_gif.c b/sys/netinet/in_gif.c
index aac8208c7e1f..e70a6f8799fc 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;