--- a/bintools/elftools/getexports/geninf.cpp Fri Aug 13 14:59:05 2010 +0300
+++ b/bintools/elftools/getexports/geninf.cpp Wed Aug 18 17:23:33 2010 +0300
@@ -159,8 +159,8 @@
Elf32_Sym * symtab = 0;
int nSyms = 0;
char * strtab = 0;
- int i=0;
-
+ int i = 0;
+
for (i = 0; (i < shnum); i++) {
if (shdr[i].sh_type == SHT_SYMTAB) {
symtab = ELFADDR(Elf32_Sym, eh, shdr[i].sh_offset);
@@ -283,7 +283,6 @@
int shoff = eh->e_shoff; // offset of section header table
if (shoff) {
Elf32_Shdr * shdr = ELFADDR(Elf32_Shdr, eh, shoff);
- int i=0;
int shnum = eh->e_shnum; // number of section headers
@@ -307,7 +306,8 @@
Elf32_Sym * symtab = 0;
int nSyms = 0;
char * strtab = 0;
-
+ int i = 0;
+
for (i = 0; (i < shnum); i++) {
if (shdr[i].sh_type == SHT_DYNSYM) {
symtab = ELFADDR(Elf32_Sym, eh, shdr[i].sh_offset);
@@ -350,7 +350,7 @@
int shstrndx = eh->e_shstrndx;
char *aSHdrStrTab = ELFADDR(char, eh, shdr[shstrndx].sh_offset);
- int i=0;
+ int i;
Elf32_Verdef *aVerDef = 0;
char *aStringTab = 0;
for(i = 0; i < shnum; i++) {