[BusyBox-cvs] busybox/libbb find_root_device.c,1.8,1.9
Erik Andersen
andersen at busybox.net
Fri Jun 20 09:25:38 UTC 2003
Update of /var/cvs/busybox/libbb
In directory winder:/tmp/cvs-serv15516/libbb
Modified Files:
find_root_device.c
Log Message:
Don't shadow a paramater
Index: find_root_device.c
===================================================================
RCS file: /var/cvs/busybox/libbb/find_root_device.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- find_root_device.c 10 Jun 2003 17:22:47 -0000 1.8
+++ find_root_device.c 20 Jun 2003 09:25:34 -0000 1.9
@@ -48,13 +48,13 @@
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 */
More information about the busybox-cvs
mailing list