Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/sparc avoid shadowed variable



details:   https://anonhg.NetBSD.org/src/rev/0731087f4929
branches:  trunk
changeset: 333946:0731087f4929
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Nov 23 02:15:52 2014 +0000

description:
avoid shadowed variable

diffstat:

 sys/arch/sparc/sparc/openfirm.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (42 lines):

diff -r c4c50983fd94 -r 0731087f4929 sys/arch/sparc/sparc/openfirm.c
--- a/sys/arch/sparc/sparc/openfirm.c   Sun Nov 23 01:56:35 2014 +0000
+++ b/sys/arch/sparc/sparc/openfirm.c   Sun Nov 23 02:15:52 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: openfirm.c,v 1.18 2011/07/18 21:00:28 martin Exp $     */
+/*     $NetBSD: openfirm.c,v 1.19 2014/11/23 02:15:52 christos Exp $   */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: openfirm.c,v 1.18 2011/07/18 21:00:28 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: openfirm.c,v 1.19 2014/11/23 02:15:52 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -554,7 +554,7 @@
 }
 
 void
-OF_boot(const char *bootspec)
+OF_boot(const char *bspec)
 {
        struct {
                cell_t name;
@@ -564,12 +564,12 @@
        } args;
        int l;
 
-       if ((l = strlen(bootspec)) >= NBPG)
+       if ((l = strlen(bspec)) >= NBPG)
                panic("OF_boot");
        args.name = ADR2CELL("boot");
        args.nargs = 1;
        args.nreturns = 0;
-       args.bootspec = ADR2CELL(bootspec);
+       args.bootspec = ADR2CELL(bspec);
        openfirmware(&args);
        panic("OF_boot failed");
 }



Home | Main Index | Thread Index | Old Index