From 3bc04b00b860a0c41bc07cc0c27fba74604e7dcf Mon Sep 17 00:00:00 2001 From: riastradh Date: Thu, 4 Feb 2016 02:48:37 +0000 Subject: [PATCH] Declare in6_tmpaddrtimer_ch in in6_var.h. Do not declare extern variables in .c files! --- sys/netinet6/in6_var.h | 3 ++- sys/netinet6/ip6_input.c | 6 ++---- sys/netinet6/nd6.c | 5 ++--- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/sys/netinet6/in6_var.h b/sys/netinet6/in6_var.h index 6c18e0294c85..36dce75a5cd3 100644 --- a/sys/netinet6/in6_var.h +++ b/sys/netinet6/in6_var.h @@ -1,4 +1,4 @@ -/* $NetBSD: in6_var.h,v 1.75 2015/11/25 06:21:26 ozaki-r Exp $ */ +/* $NetBSD: in6_var.h,v 1.76 2016/02/04 02:48:37 riastradh Exp $ */ /* $KAME: in6_var.h,v 1.81 2002/06/08 11:16:51 itojun Exp $ */ /* @@ -502,6 +502,7 @@ extern const struct in6_addr zeroin6_addr; extern const u_char inet6ctlerrmap[]; extern unsigned long in6_maxmtu; extern bool in6_present; +extern callout_t in6_tmpaddrtimer_ch; /* * Macro for finding the internet address structure (in6_ifaddr) corresponding diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c index a427e50dc4cb..139f9a00ef62 100644 --- a/sys/netinet6/ip6_input.c +++ b/sys/netinet6/ip6_input.c @@ -1,4 +1,4 @@ -/* $NetBSD: ip6_input.c,v 1.154 2016/01/08 03:55:39 knakahara Exp $ */ +/* $NetBSD: ip6_input.c,v 1.155 2016/02/04 02:48:37 riastradh 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.154 2016/01/08 03:55:39 knakahara Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ip6_input.c,v 1.155 2016/02/04 02:48:37 riastradh Exp $"); #ifdef _KERNEL_OPT #include "opt_gateway.h" @@ -136,8 +136,6 @@ u_char ip6_protox[IPPROTO_MAX]; struct in6_ifaddr *in6_ifaddr; pktqueue_t *ip6_pktq __read_mostly; -extern callout_t in6_tmpaddrtimer_ch; - int ip6_forward_srcrt; /* XXX */ int ip6_sourcecheck; /* XXX */ int ip6_sourcecheck_interval; /* XXX */ diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c index 2da76f3fa1a4..2eeb9e16bc5d 100644 --- a/sys/netinet6/nd6.c +++ b/sys/netinet6/nd6.c @@ -1,4 +1,4 @@ -/* $NetBSD: nd6.c,v 1.184 2016/01/08 08:50:07 ozaki-r Exp $ */ +/* $NetBSD: nd6.c,v 1.185 2016/02/04 02:48:37 riastradh Exp $ */ /* $KAME: nd6.c,v 1.279 2002/06/08 11:16:51 itojun Exp $ */ /* @@ -31,7 +31,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: nd6.c,v 1.184 2016/01/08 08:50:07 ozaki-r Exp $"); +__KERNEL_RCSID(0, "$NetBSD: nd6.c,v 1.185 2016/02/04 02:48:37 riastradh Exp $"); #ifdef _KERNEL_OPT #include "opt_net_mpsafe.h" @@ -127,7 +127,6 @@ static void clear_llinfo_pqueue(struct llentry *); callout_t nd6_slowtimo_ch; callout_t nd6_timer_ch; -extern callout_t in6_tmpaddrtimer_ch; static int fill_drlist(void *, size_t *, size_t); static int fill_prlist(void *, size_t *, size_t);