Module Name:    src
Committed By:   ozaki-r
Date:           Tue Sep  1 08:52:02 UTC 2015

Modified Files:
        src/sys/netinet6: nd6.c

Log Message:
Move a rtentry definition to reduce its scope

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.171 -r1.172 src/sys/netinet6/nd6.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/netinet6/nd6.c
diff -u src/sys/netinet6/nd6.c:1.171 src/sys/netinet6/nd6.c:1.172
--- src/sys/netinet6/nd6.c:1.171	Tue Sep  1 08:46:27 2015
+++ src/sys/netinet6/nd6.c	Tue Sep  1 08:52:02 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: nd6.c,v 1.171 2015/09/01 08:46:27 ozaki-r Exp $	*/
+/*	$NetBSD: nd6.c,v 1.172 2015/09/01 08:52:02 ozaki-r 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.171 2015/09/01 08:46:27 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nd6.c,v 1.172 2015/09/01 08:52:02 ozaki-r Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -1547,7 +1547,6 @@ nd6_ioctl(u_long cmd, void *data, struct
 	struct in6_ndifreq *ndif = (struct in6_ndifreq *)data;
 	struct nd_defrouter *dr;
 	struct nd_prefix *pr;
-	struct rtentry *rt;
 	int i = 0, error = 0;
 	int s;
 
@@ -1820,6 +1819,7 @@ nd6_ioctl(u_long cmd, void *data, struct
 	{
 		struct llinfo_nd6 *ln;
 		struct in6_addr nb_addr = nbi->addr; /* make local for safety */
+		struct rtentry *rt;
 
 		if ((error = in6_setscope(&nb_addr, ifp, NULL)) != 0)
 			return error;

Reply via email to