diff options
author | Michael Snyder <msnyder@vmware.com> | 2011-02-26 23:34:44 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2011-02-26 23:34:44 +0000 |
commit | 5eee517dae62b3a4ef81aa9536272ff5a7e98d2f (patch) | |
tree | 601567e2f42f421cc69514b93d88eafa75f28811 /gdb/linux-nat.c | |
parent | c24bea2f473f5bb5d6640a1174aaf2bc47c79989 (diff) | |
download | gdb-5eee517dae62b3a4ef81aa9536272ff5a7e98d2f.zip gdb-5eee517dae62b3a4ef81aa9536272ff5a7e98d2f.tar.gz gdb-5eee517dae62b3a4ef81aa9536272ff5a7e98d2f.tar.bz2 |
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.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r-- | gdb/linux-nat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index cd88df8..bb0dd18 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -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, |