Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet6 Declare in6_tmpaddrtimer_ch in in6_var.h.



details:   https://anonhg.NetBSD.org/src/rev/ed3f57958772
branches:  trunk
changeset: 343438:ed3f57958772
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Thu Feb 04 02:48:37 2016 +0000

description:
Declare in6_tmpaddrtimer_ch in in6_var.h.

Do not declare extern variables in .c files!

diffstat:

 sys/netinet6/in6_var.h   |  3 ++-
 sys/netinet6/ip6_input.c |  6 ++----
 sys/netinet6/nd6.c       |  5 ++---
 3 files changed, 6 insertions(+), 8 deletions(-)

diffs (70 lines):

diff -r 564743d04bc9 -r ed3f57958772 sys/netinet6/in6_var.h
--- a/sys/netinet6/in6_var.h    Thu Feb 04 00:32:33 2016 +0000
+++ b/sys/netinet6/in6_var.h    Thu Feb 04 02:48:37 2016 +0000
@@ -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 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 -r 564743d04bc9 -r ed3f57958772 sys/netinet6/ip6_input.c
--- a/sys/netinet6/ip6_input.c  Thu Feb 04 00:32:33 2016 +0000
+++ b/sys/netinet6/ip6_input.c  Thu Feb 04 02:48:37 2016 +0000
@@ -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 <sys/cdefs.h>
-__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 @@
 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 -r 564743d04bc9 -r ed3f57958772 sys/netinet6/nd6.c
--- a/sys/netinet6/nd6.c        Thu Feb 04 00:32:33 2016 +0000
+++ b/sys/netinet6/nd6.c        Thu Feb 04 02:48:37 2016 +0000
@@ -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 <sys/cdefs.h>
-__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 @@
 
 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);



Home | Main Index | Thread Index | Old Index