diff options
Diffstat (limited to 'base/loader/elf_object.cc')
-rw-r--r-- | base/loader/elf_object.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/base/loader/elf_object.cc b/base/loader/elf_object.cc index 93313fac6..929d455a5 100644 --- a/base/loader/elf_object.cc +++ b/base/loader/elf_object.cc @@ -186,7 +186,7 @@ bool ElfObject::loadSomeSymbols(SymbolTable *symtab, int binding) { Elf *elf; - int secidx = 1; // there is a 0 but it is nothing, go figure + int sec_idx = 1; // there is a 0 but it is nothing, go figure Elf_Scn *section; GElf_Shdr shdr; Elf_Data *data; @@ -206,7 +206,7 @@ ElfObject::loadSomeSymbols(SymbolTable *symtab, int binding) assert(elf != NULL); // Get the first section - section = elf_getscn(elf, secidx); + section = elf_getscn(elf, sec_idx); // While there are no more sections while (section != NULL) { @@ -227,8 +227,8 @@ ElfObject::loadSomeSymbols(SymbolTable *symtab, int binding) } } } - ++secidx; - section = elf_getscn(elf, secidx); + ++sec_idx; + section = elf_getscn(elf, sec_idx); } elf_end(elf); |