summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if_gif.c27
-rw-r--r--sys/netinet/in_gif.c7
2 files changed, 10 insertions, 24 deletions
diff --git a/sys/net/if_gif.c b/sys/net/if_gif.c
index 57509c9888d..2613104efa7 100644
--- a/sys/net/if_gif.c
+++ b/sys/net/if_gif.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_gif.c,v 1.49 2008/05/07 13:45:35 dlg Exp $ */
+/* $OpenBSD: if_gif.c,v 1.50 2008/09/28 16:14:39 jsing Exp $ */
/* $KAME: if_gif.c,v 1.43 2001/02/20 08:51:07 itojun Exp $ */
/*
@@ -77,17 +77,14 @@ struct if_clone gif_cloner =
/* ARGSUSED */
void
-gifattach(count)
- int count;
+gifattach(int count)
{
LIST_INIT(&gif_softc_list);
if_clone_attach(&gif_cloner);
}
int
-gif_clone_create(ifc, unit)
- struct if_clone *ifc;
- int unit;
+gif_clone_create(struct if_clone *ifc, int unit)
{
struct gif_softc *sc;
int s;
@@ -122,8 +119,7 @@ gif_clone_create(ifc, unit)
}
int
-gif_clone_destroy(ifp)
- struct ifnet *ifp;
+gif_clone_destroy(struct ifnet *ifp)
{
struct gif_softc *sc = ifp->if_softc;
int s;
@@ -145,8 +141,7 @@ gif_clone_destroy(ifp)
}
void
-gif_start(ifp)
- struct ifnet *ifp;
+gif_start(struct ifnet *ifp)
{
struct gif_softc *sc = (struct gif_softc*)ifp;
struct mbuf *m;
@@ -265,11 +260,8 @@ gif_start(ifp)
}
int
-gif_output(ifp, m, dst, rt)
- struct ifnet *ifp;
- struct mbuf *m;
- struct sockaddr *dst;
- struct rtentry *rt; /* added in net2 */
+gif_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst,
+ struct rtentry *rt)
{
struct gif_softc *sc = (struct gif_softc*)ifp;
int error = 0;
@@ -319,10 +311,7 @@ end:
}
int
-gif_ioctl(ifp, cmd, data)
- struct ifnet *ifp;
- u_long cmd;
- caddr_t data;
+gif_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct gif_softc *sc = (struct gif_softc*)ifp;
struct ifreq *ifr = (struct ifreq*)data;
diff --git a/sys/netinet/in_gif.c b/sys/netinet/in_gif.c
index 61e68de45fd..4c93f4cee5c 100644
--- a/sys/netinet/in_gif.c
+++ b/sys/netinet/in_gif.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in_gif.c,v 1.34 2008/09/28 15:25:32 jsing Exp $ */
+/* $OpenBSD: in_gif.c,v 1.35 2008/09/28 16:14:40 jsing Exp $ */
/* $KAME: in_gif.c,v 1.50 2001/01/22 07:27:16 itojun Exp $ */
/*
@@ -60,10 +60,7 @@
#endif
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 = (struct gif_softc*)ifp;
struct sockaddr_in *sin_src = (struct sockaddr_in *)sc->gif_psrc;