Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 On ARM the variable name 'delay' shadows a func...
details: https://anonhg.NetBSD.org/src/rev/771d764fcdaf
branches: trunk
changeset: 330263:771d764fcdaf
user: justin <justin%NetBSD.org@localhost>
date: Tue Jul 01 23:01:54 2014 +0000
description:
On ARM the variable name 'delay' shadows a function here, rename to avoid
-Wshadow objecting.
diffstat:
sys/netinet6/in6.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (39 lines):
diff -r f8f6c751d574 -r 771d764fcdaf sys/netinet6/in6.c
--- a/sys/netinet6/in6.c Tue Jul 01 20:03:21 2014 +0000
+++ b/sys/netinet6/in6.c Tue Jul 01 23:01:54 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: in6.c,v 1.173 2014/07/01 07:51:29 ozaki-r Exp $ */
+/* $NetBSD: in6.c,v 1.174 2014/07/01 23:01:54 justin 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.173 2014/07/01 07:51:29 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.174 2014/07/01 23:01:54 justin Exp $");
#include "opt_inet.h"
#include "opt_compat_netbsd.h"
@@ -2156,17 +2156,17 @@
}
if (ia->ia6_flags & IN6_IFF_TENTATIVE) {
- int delay;
+ int rand_delay;
/*
* The TENTATIVE flag was likely set by hand
* beforehand, implicitly indicating the need for DAD.
* We may be able to skip the random delay in this
* case, but we impose delays just in case.
*/
- delay = cprng_fast32() %
+ rand_delay = cprng_fast32() %
(MAX_RTR_SOLICITATION_DELAY * hz);
/* +1 ensures callout is always used */
- nd6_dad_start(ifa, delay + 1);
+ nd6_dad_start(ifa, rand_delay + 1);
}
}
Home |
Main Index |
Thread Index |
Old Index