Convert to ansi definitions from old-style definitons.
Remember that func() is not ansi, func(void) is.
This commit is contained in:
parent
41b4feae9a
commit
c939552209
@ -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 <sys/cdefs.h>
|
||||
__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 <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -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)
|
||||
|
@ -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 <sys/cdefs.h>
|
||||
__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);
|
||||
|
@ -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 <sys/cdefs.h>
|
||||
__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;
|
||||
|
@ -65,7 +65,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__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);
|
||||
}
|
||||
|
@ -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 <sys/cdefs.h>
|
||||
__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;
|
||||
|
@ -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 <sys/cdefs.h>
|
||||
__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;
|
||||
|
@ -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 <sys/cdefs.h>
|
||||
__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;
|
||||
|
@ -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 <sys/cdefs.h>
|
||||
__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;
|
||||
|
@ -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 <sys/cdefs.h>
|
||||
__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 <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user