Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 Move a rtentry definition to reduce its scope
details: https://anonhg.NetBSD.org/src/rev/dbf47e72caf3
branches: trunk
changeset: 340349:dbf47e72caf3
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Tue Sep 01 08:52:02 2015 +0000
description:
Move a rtentry definition to reduce its scope
No functional change.
diffstat:
sys/netinet6/nd6.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (34 lines):
diff -r 2a500f4b46f3 -r dbf47e72caf3 sys/netinet6/nd6.c
--- a/sys/netinet6/nd6.c Tue Sep 01 08:46:27 2015 +0000
+++ b/sys/netinet6/nd6.c Tue Sep 01 08:52:02 2015 +0000
@@ -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 @@
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 @@
{
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;
Home |
Main Index |
Thread Index |
Old Index