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.
This commit is contained in:
Michael Snyder 2011-02-26 23:34:44 +00:00
parent c24bea2f47
commit 5eee517dae
2 changed files with 7 additions and 4 deletions

View 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.

View 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,