aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-06-20 09:25:34 +0000
committerEric Andersen <andersen@codepoet.org>2003-06-20 09:25:34 +0000
commitdd92c77bb0de724cfc06feed5c716f936196ff63 (patch)
tree9ecbfe3d00c8d6054feb478577b2e11ca35f57e3
parent0cc7e6236a897cb09a78b61a21d2c16ad423f4ce (diff)
downloadbusybox-dd92c77bb0de724cfc06feed5c716f936196ff63.tar.gz
Don't shadow a paramater
-rw-r--r--libbb/find_root_device.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/find_root_device.c b/libbb/find_root_device.c
index 654f17145..7cbac0c56 100644
--- a/libbb/find_root_device.c
+++ b/libbb/find_root_device.c
@@ -48,13 +48,13 @@ extern char *find_real_root_device_name(const char* name)
bb_perror_msg("could not open '/dev'");
else {
while((entry = readdir(dir)) != NULL) {
- const char *name = entry->d_name;
+ const char *myname = entry->d_name;
/* Must skip ".." since that is "/", and so we
* would get a false positive on ".." */
- if (name[0] == '.' && name[1] == '.' && !name[2])
+ if (myname[0] == '.' && myname[1] == '.' && !myname[2])
continue;
- fileName = concat_path_file("/dev", name);
+ fileName = concat_path_file("/dev", myname);
/* Some char devices have the same dev_t as block
* devices, so make sure this is a block device */