aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2013-12-17 10:10:16 -0800
committerH.J. Lu <hjl.tools@gmail.com>2013-12-17 10:10:16 -0800
commit337e86d7c5a121bbd3983c580c3d33ab05a5325c (patch)
treef739c06c2688c8ad9aa6d7f534ccb233d1751ae9 /bfd
parentbdf22206150b19e4903e9cbc520de2c49b2a2b7f (diff)
downloadgdb-337e86d7c5a121bbd3983c580c3d33ab05a5325c.zip
gdb-337e86d7c5a121bbd3983c580c3d33ab05a5325c.tar.gz
gdb-337e86d7c5a121bbd3983c580c3d33ab05a5325c.tar.bz2
Rename index to indx
* peXXigen.c (rsrc_process_section): Rename index to indx.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/peXXigen.c16
2 files changed, 12 insertions, 8 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 4df87fe..19596a9 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2013-12-17 H.J. Lu <hongjiu.lu@intel.com>
+
+ * peXXigen.c (rsrc_process_section): Rename index to indx.
+
2013-12-17 Nick Clifton <nickc@redhat.com>
* peXXigen.c: Include wchar.h if available.
diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c
index cddb38f..5e2a876 100644
--- a/bfd/peXXigen.c
+++ b/bfd/peXXigen.c
@@ -3519,20 +3519,20 @@ rsrc_process_section (bfd * abfd,
if (type_tables == NULL)
goto end;
- unsigned int index = 0;
+ unsigned int indx = 0;
while (data < dataend)
{
bfd_byte * p = data;
- data = rsrc_parse_directory (abfd, type_tables + index, data, data, dataend,
+ data = rsrc_parse_directory (abfd, type_tables + indx, data, data, dataend,
rva_bias, NULL);
data = (bfd_byte *) (((long) (data + 3)) & ~ 3);
rva_bias += data - p;
if (data == (dataend - 4))
data = dataend;
- index ++;
+ indx ++;
}
- BFD_ASSERT (index == num_resource_sets);
+ BFD_ASSERT (indx == num_resource_sets);
/* Step three: Merge the top level tables (there can be only one).
@@ -3551,8 +3551,8 @@ rsrc_process_section (bfd * abfd,
new_table.names.first_entry = NULL;
new_table.names.last_entry = NULL;
- for (index = 0; index < num_resource_sets; index++)
- rsrc_attach_chain (& new_table.names, & type_tables[index].names);
+ for (indx = 0; indx < num_resource_sets; indx++)
+ rsrc_attach_chain (& new_table.names, & type_tables[indx].names);
rsrc_sort_entries (& new_table.names, TRUE, & new_table);
@@ -3560,8 +3560,8 @@ rsrc_process_section (bfd * abfd,
new_table.ids.first_entry = NULL;
new_table.ids.last_entry = NULL;
- for (index = 0; index < num_resource_sets; index++)
- rsrc_attach_chain (& new_table.ids, & type_tables[index].ids);
+ for (indx = 0; indx < num_resource_sets; indx++)
+ rsrc_attach_chain (& new_table.ids, & type_tables[indx].ids);
rsrc_sort_entries (& new_table.ids, FALSE, & new_table);