Source-Changes-HG archive

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

[src/trunk]: src/sbin/edlabel Fix a `parameter shadows global variable' warni...



details:   https://anonhg.NetBSD.org/src/rev/ebe2b46026fb
branches:  trunk
changeset: 518918:ebe2b46026fb
user:      scw <scw%NetBSD.org@localhost>
date:      Fri Dec 07 23:12:33 2001 +0000

description:
Fix a `parameter shadows global variable' warning spotted by new-toolchain.

diffstat:

 sbin/edlabel/edlabel.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (32 lines):

diff -r 12bf19d15ae8 -r ebe2b46026fb sbin/edlabel/edlabel.c
--- a/sbin/edlabel/edlabel.c    Fri Dec 07 23:09:32 2001 +0000
+++ b/sbin/edlabel/edlabel.c    Fri Dec 07 23:12:33 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: edlabel.c,v 1.9 2000/08/05 19:09:37 leo Exp $  */
+/*     $NetBSD: edlabel.c,v 1.10 2001/12/07 23:12:33 scw Exp $ */
 
 /*
  * Copyright (c) 1995 Gordon W. Ross
@@ -257,17 +257,17 @@
 }
 
 void
-get_fstype(tmpbuf, fstype)
-       char     *tmpbuf;
+get_fstype(buf, fstype)
+       char     *buf;
        u_int8_t *fstype;
 {
        int     i, len;
 
        /* An empty response retains previous value */
-       if (tmpbuf[0] == '\n')
+       if (buf[0] == '\n')
                return;
-       for (i = 0, len = strlen(tmpbuf) - 1; i < FSMAXTYPES; i++) {
-               if (!strncasecmp(tmpbuf, fstypenames[i], len)) {
+       for (i = 0, len = strlen(buf) - 1; i < FSMAXTYPES; i++) {
+               if (!strncasecmp(buf, fstypenames[i], len)) {
                        *fstype = i;
                        return;
                }



Home | Main Index | Thread Index | Old Index