diff -r c7c26511138f -r 360bd6b35136 bintools/elftools/getexports/geninf.cpp --- a/bintools/elftools/getexports/geninf.cpp Wed Jun 16 16:51:40 2010 +0300 +++ b/bintools/elftools/getexports/geninf.cpp Wed Jun 23 16:56:47 2010 +0800 @@ -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++) {