Source-Changes-HG archive

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

[src/trunk]: src/sbin/raidctl Rename argument of rf_output_devname() from dev...



details:   https://anonhg.NetBSD.org/src/rev/ededce140eb9
branches:  trunk
changeset: 340490:ededce140eb9
user:      bad <bad%NetBSD.org@localhost>
date:      Tue Sep 08 08:59:09 2015 +0000

description:
Rename argument of rf_output_devname() from devname to name to avoid a
warning about shadowing a global symbol when compiled by buildrump.sh.
Discussed with mrg.

diffstat:

 sbin/raidctl/raidctl.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (34 lines):

diff -r 73110ea4fd60 -r ededce140eb9 sbin/raidctl/raidctl.c
--- a/sbin/raidctl/raidctl.c    Tue Sep 08 08:24:42 2015 +0000
+++ b/sbin/raidctl/raidctl.c    Tue Sep 08 08:59:09 2015 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: raidctl.c,v 1.62 2015/07/21 05:54:44 mrg Exp $   */
+/*      $NetBSD: raidctl.c,v 1.63 2015/09/08 08:59:09 bad Exp $   */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -39,7 +39,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: raidctl.c,v 1.62 2015/07/21 05:54:44 mrg Exp $");
+__RCSID("$NetBSD: raidctl.c,v 1.63 2015/09/08 08:59:09 bad Exp $");
 #endif
 
 
@@ -577,12 +577,12 @@
 }
 
 /* convert "component0" into "absent" */
-static const char *rf_output_devname(const char *devname)
+static const char *rf_output_devname(const char *name)
 {
 
-       if (strncmp(devname, "component", 9) == 0)
+       if (strncmp(name, "component", 9) == 0)
                return "absent";
-       return devname;
+       return name;
 }
 
 static void



Home | Main Index | Thread Index | Old Index