From c9395522091aedfc290226b8539f83138cf82118 Mon Sep 17 00:00:00 2001 From: matt Date: Wed, 27 Feb 2008 19:40:56 +0000 Subject: [PATCH] Convert to ansi definitions from old-style definitons. Remember that func() is not ansi, func(void) is. --- sys/netinet6/frag6.c | 14 +++++++------- sys/netinet6/icmp6.c | 6 +++--- sys/netinet6/in6.c | 6 +++--- sys/netinet6/in6_src.c | 4 ++-- sys/netinet6/ip6_input.c | 8 ++++---- sys/netinet6/ip6_mroute.c | 6 +++--- sys/netinet6/mld6.c | 6 +++--- sys/netinet6/nd6_nbr.c | 17 +++++++++-------- sys/netinet6/nd6_rtr.c | 10 +++++----- 9 files changed, 39 insertions(+), 38 deletions(-) diff --git a/sys/netinet6/frag6.c b/sys/netinet6/frag6.c index bd122f29dfb6..b89e4e1e5647 100644 --- a/sys/netinet6/frag6.c +++ b/sys/netinet6/frag6.c @@ -1,4 +1,4 @@ -/* $NetBSD: frag6.c,v 1.41 2008/01/14 04:14:37 dyoung Exp $ */ +/* $NetBSD: frag6.c,v 1.42 2008/02/27 19:40:56 matt Exp $ */ /* $KAME: frag6.c,v 1.40 2002/05/27 21:40:31 itojun Exp $ */ /* @@ -31,7 +31,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: frag6.c,v 1.41 2008/01/14 04:14:37 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: frag6.c,v 1.42 2008/02/27 19:40:56 matt Exp $"); #include #include @@ -71,7 +71,7 @@ static inline int ip6q_lock_try(void); static inline void ip6q_unlock(void); static inline int -ip6q_lock_try() +ip6q_lock_try(void) { int s; @@ -90,7 +90,7 @@ ip6q_lock_try() } static inline void -ip6q_unlock() +ip6q_unlock(void) { int s; @@ -129,7 +129,7 @@ do { \ * Initialise reassembly queue and fragment identifier. */ void -frag6_init() +frag6_init(void) { ip6q.ip6q_next = ip6q.ip6q_prev = &ip6q; @@ -674,7 +674,7 @@ frag6_remque(struct ip6q *p6) * queue, discard it. */ void -frag6_slowtimo() +frag6_slowtimo(void) { struct ip6q *q6; int s = splsoftnet(); @@ -721,7 +721,7 @@ frag6_slowtimo() * Drain off all datagram fragments. */ void -frag6_drain() +frag6_drain(void) { if (ip6q_lock_try() == 0) diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c index 8bbb75f2884a..4922b2bbc455 100644 --- a/sys/netinet6/icmp6.c +++ b/sys/netinet6/icmp6.c @@ -1,4 +1,4 @@ -/* $NetBSD: icmp6.c,v 1.141 2007/12/04 10:27:33 dyoung Exp $ */ +/* $NetBSD: icmp6.c,v 1.142 2008/02/27 19:40:56 matt Exp $ */ /* $KAME: icmp6.c,v 1.217 2001/06/20 15:03:29 jinmei Exp $ */ /* @@ -62,7 +62,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: icmp6.c,v 1.141 2007/12/04 10:27:33 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: icmp6.c,v 1.142 2008/02/27 19:40:56 matt Exp $"); #include "opt_inet.h" #include "opt_ipsec.h" @@ -171,7 +171,7 @@ static void icmp6_redirect_timeout(struct rtentry *, struct rttimer *); void -icmp6_init() +icmp6_init(void) { mld_init(); icmp6_mtudisc_timeout_q = rt_timer_queue_create(pmtu_expire); diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c index ad792ec1dc3b..56840ff6c5f7 100644 --- a/sys/netinet6/in6.c +++ b/sys/netinet6/in6.c @@ -1,4 +1,4 @@ -/* $NetBSD: in6.c,v 1.139 2007/12/06 00:28:36 dyoung Exp $ */ +/* $NetBSD: in6.c,v 1.140 2008/02/27 19:40:56 matt Exp $ */ /* $KAME: in6.c,v 1.198 2001/07/18 09:12:38 itojun Exp $ */ /* @@ -62,7 +62,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.139 2007/12/06 00:28:36 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.140 2008/02/27 19:40:56 matt Exp $"); #include "opt_inet.h" #include "opt_pfil_hooks.h" @@ -2100,7 +2100,7 @@ in6if_do_dad(struct ifnet *ifp) * to in6_maxmtu. */ void -in6_setmaxmtu() +in6_setmaxmtu(void) { unsigned long maxmtu = 0; struct ifnet *ifp; diff --git a/sys/netinet6/in6_src.c b/sys/netinet6/in6_src.c index 09ff207f5d30..9258211ffe78 100644 --- a/sys/netinet6/in6_src.c +++ b/sys/netinet6/in6_src.c @@ -65,7 +65,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: in6_src.c,v 1.40 2007/11/26 08:12:33 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: in6_src.c,v 1.41 2008/02/27 19:40:56 matt Exp $"); #include "opt_inet.h" @@ -1004,7 +1004,7 @@ TAILQ_HEAD(addrsel_policyhead, addrsel_policyent); struct addrsel_policyhead addrsel_policytab; static void -init_policy_queue() +init_policy_queue(void) { TAILQ_INIT(&addrsel_policytab); } diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c index e3b587d6b287..0b0ab69008dc 100644 --- a/sys/netinet6/ip6_input.c +++ b/sys/netinet6/ip6_input.c @@ -1,4 +1,4 @@ -/* $NetBSD: ip6_input.c,v 1.113 2007/12/04 10:27:34 dyoung Exp $ */ +/* $NetBSD: ip6_input.c,v 1.114 2008/02/27 19:40:56 matt Exp $ */ /* $KAME: ip6_input.c,v 1.188 2001/03/29 05:34:31 itojun Exp $ */ /* @@ -62,7 +62,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ip6_input.c,v 1.113 2007/12/04 10:27:34 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ip6_input.c,v 1.114 2008/02/27 19:40:56 matt Exp $"); #include "opt_inet.h" #include "opt_inet6.h" @@ -159,7 +159,7 @@ static struct mbuf *ip6_pullexthdr(struct mbuf *, size_t, int); * All protocols not implemented in kernel go to raw IP6 protocol handler. */ void -ip6_init() +ip6_init(void) { const struct ip6protosw *pr; int i; @@ -217,7 +217,7 @@ ip6_init2(void *dummy) * IP6 input interrupt handling. Just pass the packet to ip6_input. */ void -ip6intr() +ip6intr(void) { int s; struct mbuf *m; diff --git a/sys/netinet6/ip6_mroute.c b/sys/netinet6/ip6_mroute.c index ef3dbd55eb4c..f689ad7bfe40 100644 --- a/sys/netinet6/ip6_mroute.c +++ b/sys/netinet6/ip6_mroute.c @@ -1,4 +1,4 @@ -/* $NetBSD: ip6_mroute.c,v 1.86 2007/11/27 22:45:30 christos Exp $ */ +/* $NetBSD: ip6_mroute.c,v 1.87 2008/02/27 19:40:56 matt Exp $ */ /* $KAME: ip6_mroute.c,v 1.49 2001/07/25 09:21:18 jinmei Exp $ */ /* @@ -117,7 +117,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ip6_mroute.c,v 1.86 2007/11/27 22:45:30 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ip6_mroute.c,v 1.87 2008/02/27 19:40:56 matt Exp $"); #include "opt_inet.h" #include "opt_mrouting.h" @@ -491,7 +491,7 @@ ip6_mrouter_init(struct socket *so, int v, int cmd) * Disable multicast routing */ int -ip6_mrouter_done() +ip6_mrouter_done(void) { mifi_t mifi; int i; diff --git a/sys/netinet6/mld6.c b/sys/netinet6/mld6.c index 7bf5aedebbb8..a880703d346d 100644 --- a/sys/netinet6/mld6.c +++ b/sys/netinet6/mld6.c @@ -1,4 +1,4 @@ -/* $NetBSD: mld6.c,v 1.41 2007/10/16 20:31:33 joerg Exp $ */ +/* $NetBSD: mld6.c,v 1.42 2008/02/27 19:40:56 matt Exp $ */ /* $KAME: mld6.c,v 1.25 2001/01/16 14:14:18 itojun Exp $ */ /* @@ -102,7 +102,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: mld6.c,v 1.41 2007/10/16 20:31:33 joerg Exp $"); +__KERNEL_RCSID(0, "$NetBSD: mld6.c,v 1.42 2008/02/27 19:40:56 matt Exp $"); #include "opt_inet.h" @@ -166,7 +166,7 @@ static void mld_stoptimer(struct in6_multi *); static u_long mld_timerresid(struct in6_multi *); void -mld_init() +mld_init(void) { static u_int8_t hbh_buf[8]; struct ip6_hbh *hbh = (struct ip6_hbh *)hbh_buf; diff --git a/sys/netinet6/nd6_nbr.c b/sys/netinet6/nd6_nbr.c index 95d1c79d8c11..d7129bad012d 100644 --- a/sys/netinet6/nd6_nbr.c +++ b/sys/netinet6/nd6_nbr.c @@ -1,4 +1,4 @@ -/* $NetBSD: nd6_nbr.c,v 1.82 2007/11/16 17:51:51 dyoung Exp $ */ +/* $NetBSD: nd6_nbr.c,v 1.83 2008/02/27 19:40:56 matt Exp $ */ /* $KAME: nd6_nbr.c,v 1.61 2001/02/10 16:06:14 jinmei Exp $ */ /* @@ -31,7 +31,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: nd6_nbr.c,v 1.82 2007/11/16 17:51:51 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: nd6_nbr.c,v 1.83 2008/02/27 19:40:56 matt Exp $"); #include "opt_inet.h" #include "opt_ipsec.h" @@ -819,12 +819,13 @@ nd6_na_input(struct mbuf *m, int off, int icmp6len) * - anycast advertisement delay rule (RFC2461 7.2.7, SHOULD) */ void -nd6_na_output(ifp, daddr6_0, taddr6, flags, tlladdr, sdl0) - struct ifnet *ifp; - const struct in6_addr *daddr6_0, *taddr6; - u_long flags; - int tlladdr; /* 1 if include target link-layer address */ - const struct sockaddr *sdl0; /* sockaddr_dl (= proxy NA) or NULL */ +nd6_na_output( + struct ifnet *ifp, + const struct in6_addr *daddr6_0, + const struct in6_addr *taddr6, + u_long flags, + int tlladdr, /* 1 if include target link-layer address */ + const struct sockaddr *sdl0) /* sockaddr_dl (= proxy NA) or NULL */ { struct mbuf *m; struct ip6_hdr *ip6; diff --git a/sys/netinet6/nd6_rtr.c b/sys/netinet6/nd6_rtr.c index a3dacc421208..9dbe52706326 100644 --- a/sys/netinet6/nd6_rtr.c +++ b/sys/netinet6/nd6_rtr.c @@ -1,4 +1,4 @@ -/* $NetBSD: nd6_rtr.c,v 1.72 2007/12/20 19:53:34 dyoung Exp $ */ +/* $NetBSD: nd6_rtr.c,v 1.73 2008/02/27 19:40:56 matt Exp $ */ /* $KAME: nd6_rtr.c,v 1.95 2001/02/07 08:09:47 itojun Exp $ */ /* @@ -31,7 +31,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: nd6_rtr.c,v 1.72 2007/12/20 19:53:34 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: nd6_rtr.c,v 1.73 2008/02/27 19:40:56 matt Exp $"); #include #include @@ -566,7 +566,7 @@ defrouter_delreq(struct nd_defrouter *dr) * remove all default routes from default router list */ void -defrouter_reset() +defrouter_reset(void) { struct nd_defrouter *dr; @@ -602,7 +602,7 @@ defrouter_reset() * complicated and the possibility of introducing bugs. */ void -defrouter_select() +defrouter_select(void) { int s = splsoftnet(); struct nd_defrouter *dr, *selected_dr = NULL, *installed_dr = NULL; @@ -1331,7 +1331,7 @@ find_pfxlist_reachable_router(struct nd_prefix *pr) * is no router around us. */ void -pfxlist_onlink_check() +pfxlist_onlink_check(void) { struct nd_prefix *pr; struct in6_ifaddr *ifa;