Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/sa11x0 Rename local vars to avoid shadowing.



details:   https://anonhg.NetBSD.org/src/rev/4507f4133288
branches:  trunk
changeset: 581588:4507f4133288
user:      uwe <uwe%NetBSD.org@localhost>
date:      Thu Jun 02 21:32:03 2005 +0000

description:
Rename local vars to avoid shadowing.

diffstat:

 sys/arch/arm/sa11x0/sa11x0_ost.c |  18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diffs (59 lines):

diff -r 80ea58782da2 -r 4507f4133288 sys/arch/arm/sa11x0/sa11x0_ost.c
--- a/sys/arch/arm/sa11x0/sa11x0_ost.c  Thu Jun 02 21:26:00 2005 +0000
+++ b/sys/arch/arm/sa11x0/sa11x0_ost.c  Thu Jun 02 21:32:03 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sa11x0_ost.c,v 1.11 2003/07/15 00:24:51 lukem Exp $    */
+/*     $NetBSD: sa11x0_ost.c,v 1.12 2005/06/02 21:32:03 uwe Exp $      */
 
 /*
  * Copyright (c) 1997 Mark Brinicombe.
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sa11x0_ost.c,v 1.11 2003/07/15 00:24:51 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sa11x0_ost.c,v 1.12 2005/06/02 21:32:03 uwe Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -215,12 +215,12 @@
 
 
 void
-setstatclockrate(hz)
-       int hz;
+setstatclockrate(schz)
+       int schz;
 {
        u_int32_t count;
 
-       saost_sc->sc_statclock_step = TIMER_FREQUENCY / hz;
+       saost_sc->sc_statclock_step = TIMER_FREQUENCY / schz;
        count = bus_space_read_4(saost_sc->sc_iot, saost_sc->sc_ioh, SAOST_CR);
        count += saost_sc->sc_statclock_step;
        saost_sc->sc_statclock_count = count;
@@ -314,7 +314,7 @@
 delay(usecs)
        u_int usecs;
 {
-       u_int32_t tick, otick, delta;
+       u_int32_t xtick, otick, delta;
        int j, csec, usec;
 
        csec = usecs / 10000;
@@ -336,12 +336,12 @@
        while (1) {
                for(j = 100; j > 0; j--)
                        ;
-               tick = gettick();
-               delta = tick - otick;
+               xtick = gettick();
+               delta = xtick - otick;
                if (delta > usecs)
                        break;
                usecs -= delta;
-               otick = tick;
+               otick = xtick;
        }
 }
 



Home | Main Index | Thread Index | Old Index