From 332c4114d2caf494b53b390339908b06f28972d8 Mon Sep 17 00:00:00 2001 From: andersen Date: Fri, 20 Jun 2003 09:25:34 +0000 Subject: Don't shadow a paramater git-svn-id: svn://busybox.net/trunk/busybox@6945 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- libbb/find_root_device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libbb') 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 */ -- cgit v1.2.3-55-g6feb