Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet Rename delay variable as it shadows a global on ...



details:   https://anonhg.NetBSD.org/src/rev/5de9cb5e034e
branches:  trunk
changeset: 337912:5de9cb5e034e
user:      justin <justin%NetBSD.org@localhost>
date:      Sun May 03 10:44:04 2015 +0000

description:
Rename delay variable as it shadows a global on arm.

diffstat:

 sys/netinet/if_arp.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (42 lines):

diff -r 05293c687202 -r 5de9cb5e034e sys/netinet/if_arp.c
--- a/sys/netinet/if_arp.c      Sun May 03 07:30:52 2015 +0000
+++ b/sys/netinet/if_arp.c      Sun May 03 10:44:04 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_arp.c,v 1.163 2015/05/02 14:41:32 roy Exp $ */
+/*     $NetBSD: if_arp.c,v 1.164 2015/05/03 10:44:04 justin Exp $      */
 
 /*-
  * Copyright (c) 1998, 2000, 2008 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_arp.c,v 1.163 2015/05/02 14:41:32 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_arp.c,v 1.164 2015/05/03 10:44:04 justin Exp $");
 
 #include "opt_ddb.h"
 #include "opt_inet.h"
@@ -1629,19 +1629,19 @@
 
        /* Need more checks? */
        if (dp->dad_arp_ocount < dp->dad_count) {
-               int delay;
+               int adelay;
 
                /*
                 * We have more ARP to go.  Send ARP packet for DAD.
                 */
                arp_dad_output(dp, ifa);
                if (dp->dad_arp_ocount < dp->dad_count)
-                       delay = (PROBE_MIN * hz) +
+                       adelay = (PROBE_MIN * hz) +
                            (cprng_fast32() %
                            ((PROBE_MAX * hz) - (PROBE_MIN * hz)));
                else
-                       delay = ANNOUNCE_WAIT * hz;
-               arp_dad_starttimer(dp, delay);
+                       adelay = ANNOUNCE_WAIT * hz;
+               arp_dad_starttimer(dp, adelay);
                goto done;
        } else if (dp->dad_arp_acount == 0) {
                /*



Home | Main Index | Thread Index | Old Index