summaryrefslogtreecommitdiff
path: root/sbin/raidctl/raidctl.c
diff options
context:
space:
mode:
authorbad <bad@NetBSD.org>2015-09-08 08:59:09 +0000
committerbad <bad@NetBSD.org>2015-09-08 08:59:09 +0000
commitf8d387594d402dfd925c973aaba1e97c845b6e22 (patch)
tree8cb5ce0fc02b8cdb1c489348ba41d915e99e4baf /sbin/raidctl/raidctl.c
parent8972ed45be5c7875db332f90c0fa09d45a79ab27 (diff)
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 (limited to 'sbin/raidctl/raidctl.c')
-rw-r--r--sbin/raidctl/raidctl.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/raidctl/raidctl.c b/sbin/raidctl/raidctl.c
index 57c68b6bce5..e179417c519 100644
--- a/sbin/raidctl/raidctl.c
+++ b/sbin/raidctl/raidctl.c
@@ -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 @@ rf_pm_configure(int fd, int raidID, char *parityconf, int parityparams[])
}
/* 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