Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/i2c Appease -Wshadow



details:   https://anonhg.NetBSD.org/src/rev/527dfc9dff1d
branches:  trunk
changeset: 581630:527dfc9dff1d
user:      scw <scw%NetBSD.org@localhost>
date:      Fri Jun 03 12:18:46 2005 +0000

description:
Appease -Wshadow

diffstat:

 sys/dev/i2c/x1226.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 666aa5b0cfc4 -r 527dfc9dff1d sys/dev/i2c/x1226.c
--- a/sys/dev/i2c/x1226.c       Fri Jun 03 12:13:43 2005 +0000
+++ b/sys/dev/i2c/x1226.c       Fri Jun 03 12:18:46 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: x1226.c,v 1.4 2004/02/13 20:12:00 shige Exp $  */
+/*     $NetBSD: x1226.c,v 1.5 2005/06/03 12:18:46 scw Exp $    */
 
 /*
  * Copyright (c) 2003 Shigeyuki Fukushima.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: x1226.c,v 1.4 2004/02/13 20:12:00 shige Exp $");
+__KERNEL_RCSID(0, "$NetBSD: x1226.c,v 1.5 2005/06/03 12:18:46 scw Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -405,7 +405,7 @@
 
        /* Write each RTC register in reverse order */
        for (i = (X1226_REG_RTC_SIZE - 1) ; i >= 0; i--) {
-               int addr = i + X1226_REG_RTC_BASE;
+               addr = i + X1226_REG_RTC_BASE;
                cmdbuf[0] = ((addr >> 8) & 0xff);
                cmdbuf[1] = (addr & 0xff);
                if (iic_exec(sc->sc_tag,



Home | Main Index | Thread Index | Old Index