mirror of
https://github.com/serge1/ELFIO.git
synced 2025-03-20 04:21:25 +00:00
Tiny reformat
This commit is contained in:
parent
fc3c397dd0
commit
2879ee62a2
@ -42,16 +42,17 @@ template <class S> class symbol_section_accessor_template
|
||||
Elf_Xword get_symbols_num() const
|
||||
{
|
||||
Elf_Xword nRet = 0;
|
||||
|
||||
size_t minimum_symbol_size;
|
||||
switch ( elf_file.get_class() ) {
|
||||
case ELFCLASS32:
|
||||
minimum_symbol_size = sizeof(Elf32_Sym);
|
||||
minimum_symbol_size = sizeof( Elf32_Sym );
|
||||
break;
|
||||
case ELFCLASS64:
|
||||
minimum_symbol_size = sizeof(Elf64_Sym);
|
||||
minimum_symbol_size = sizeof( Elf64_Sym );
|
||||
break;
|
||||
default:
|
||||
return 0;
|
||||
return nRet;
|
||||
}
|
||||
|
||||
if ( symbol_section->get_entry_size() >= minimum_symbol_size &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user