Module Name:    src
Committed By:   skrll
Date:           Tue Oct 22 13:04:25 UTC 2013

Modified Files:
        src/sys/dev/ic: arn5008.c arn9003.c

Log Message:
Avoid "declaration of 'delay' shadows a global declaration" by renaming
the local variable.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/ic/arn5008.c src/sys/dev/ic/arn9003.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/dev/ic/arn5008.c
diff -u src/sys/dev/ic/arn5008.c:1.4 src/sys/dev/ic/arn5008.c:1.5
--- src/sys/dev/ic/arn5008.c:1.4	Thu Oct 17 21:24:24 2013
+++ src/sys/dev/ic/arn5008.c	Tue Oct 22 13:04:25 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: arn5008.c,v 1.4 2013/10/17 21:24:24 christos Exp $	*/
+/*	$NetBSD: arn5008.c,v 1.5 2013/10/22 13:04:25 skrll Exp $	*/
 /*	$OpenBSD: ar5008.c,v 1.21 2012/08/25 12:14:31 kettenis Exp $	*/
 
 /*-
@@ -24,7 +24,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arn5008.c,v 1.4 2013/10/17 21:24:24 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arn5008.c,v 1.5 2013/10/22 13:04:25 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/sockio.h>
@@ -1661,14 +1661,14 @@ ar5008_set_rf_mode(struct athn_softc *sc
 static __inline uint32_t
 ar5008_synth_delay(struct athn_softc *sc)
 {
-	uint32_t delay;
+	uint32_t synth_delay;
 
-	delay = MS(AR_READ(sc, AR_PHY_RX_DELAY), AR_PHY_RX_DELAY_DELAY);
+	synth_delay = MS(AR_READ(sc, AR_PHY_RX_DELAY), AR_PHY_RX_DELAY_DELAY);
 	if (sc->sc_ic.ic_curmode == IEEE80211_MODE_11B)
-		delay = (delay * 4) / 22;
+		synth_delay = (synth_delay * 4) / 22;
 	else
-		delay = delay / 10;	/* in 100ns steps */
-	return delay;
+		synth_delay = synth_delay / 10;	/* in 100ns steps */
+	return synth_delay;
 }
 
 Static int
Index: src/sys/dev/ic/arn9003.c
diff -u src/sys/dev/ic/arn9003.c:1.4 src/sys/dev/ic/arn9003.c:1.5
--- src/sys/dev/ic/arn9003.c:1.4	Thu Oct 17 21:24:24 2013
+++ src/sys/dev/ic/arn9003.c	Tue Oct 22 13:04:25 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: arn9003.c,v 1.4 2013/10/17 21:24:24 christos Exp $	*/
+/*	$NetBSD: arn9003.c,v 1.5 2013/10/22 13:04:25 skrll Exp $	*/
 /*	$OpenBSD: ar9003.c,v 1.25 2012/10/20 09:53:32 stsp Exp $	*/
 
 /*-
@@ -24,7 +24,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arn9003.c,v 1.4 2013/10/17 21:24:24 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arn9003.c,v 1.5 2013/10/22 13:04:25 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/sockio.h>
@@ -1840,14 +1840,14 @@ ar9003_set_rf_mode(struct athn_softc *sc
 static __inline uint32_t
 ar9003_synth_delay(struct athn_softc *sc)
 {
-	uint32_t delay;
+	uint32_t synth_delay;
 
-	delay = MS(AR_READ(sc, AR_PHY_RX_DELAY), AR_PHY_RX_DELAY_DELAY);
+	synth_delay = MS(AR_READ(sc, AR_PHY_RX_DELAY), AR_PHY_RX_DELAY_DELAY);
 	if (sc->sc_ic.ic_curmode == IEEE80211_MODE_11B)
-		delay = (delay * 4) / 22;
+		synth_delay = (synth_delay * 4) / 22;
 	else
-		delay = delay / 10;	/* in 100ns steps */
-	return delay;
+		synth_delay = synth_delay / 10;	/* in 100ns steps */
+	return synth_delay;
 }
 
 Static int

Reply via email to