Skip to content
Snippets Groups Projects
Commit 5318d2ed authored by Simon McVittie's avatar Simon McVittie
Browse files

dump: Be more const-correct

parent ad9e4c47
No related branches found
No related tags found
1 merge request!311Build capsule-capture-libs from a bundled copy of libcapsule
......@@ -413,7 +413,7 @@ st_type(int type)
}
static void
symbol_version ( ElfW(Sym) *symbol,
symbol_version ( const ElfW(Sym) *symbol,
int i,
const char *strtab,
const ElfW(Versym) *versym,
......@@ -471,16 +471,16 @@ symbol_version ( ElfW(Sym) *symbol,
static void
dump_symtab (const char *indent,
const void *start,
const ElfW(Sym) *start,
const char *strtab,
const ElfW(Versym) *versym,
const void *verdef,
const int verdefnum)
{
int x = 0;
ElfW(Sym) *entry;
const ElfW(Sym) *entry;
for( entry = (ElfW(Sym) *)start;
for( entry = start;
( (ELFW_ST_TYPE(entry->st_info) < STT_NUM) &&
(ELFW_ST_BIND(entry->st_info) < STB_NUM) );
entry++ )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment