2011-02-26 Michael Snyder <msnyder@vmware.com>
authorMichael Snyder <msnyder@vmware.com>
Sat, 26 Feb 2011 23:34:44 +0000 (23:34 +0000)
committerMichael Snyder <msnyder@vmware.com>
Sat, 26 Feb 2011 23:34:44 +0000 (23:34 +0000)
* linux-low.c (linux_nat_xfer_osdata): Rename local variable so
that it does not shadow a function parameter.

gdb/ChangeLog
gdb/linux-nat.c

index a28925e82a801ec32b5a201ad9bd105da008070d..828994e8587a8f0bdc3780673db5e8fc1ba78667 100644 (file)
@@ -1,5 +1,8 @@
 2011-02-26  Michael Snyder  <msnyder@vmware.com>
 
+       * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
+       that it does not shadow a function parameter.
+
        * i386-nat.c (i386_length_and_rw_bits): Document that case
        statement is meant to fall through.
 
index cd88df8a2a9fa8fad6d45c3efe47ba0a5600836d..bb0dd18d12fd88e99efa30ff3527c37e9ebaa19d 100644 (file)
@@ -5145,16 +5145,16 @@ linux_nat_xfer_osdata (struct target_ops *ops, enum target_object object,
 
                  if ((f = fopen (pathname, "r")) != NULL)
                    {
-                     size_t len = fread (cmd, 1, sizeof (cmd) - 1, f);
+                     size_t length = fread (cmd, 1, sizeof (cmd) - 1, f);
 
-                     if (len > 0)
+                     if (length > 0)
                        {
                          int i;
 
-                         for (i = 0; i < len; i++)
+                         for (i = 0; i < length; i++)
                            if (cmd[i] == '\0')
                              cmd[i] = ' ';
-                         cmd[len] = '\0';
+                         cmd[length] = '\0';
 
                          obstack_xml_printf (
                            &obstack,