diff options
Diffstat (limited to 'contrib/elftoolchain/libelf/elf_strptr.c')
-rw-r--r-- | contrib/elftoolchain/libelf/elf_strptr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/elftoolchain/libelf/elf_strptr.c b/contrib/elftoolchain/libelf/elf_strptr.c index e2a6b2899f58..c79970dc8907 100644 --- a/contrib/elftoolchain/libelf/elf_strptr.c +++ b/contrib/elftoolchain/libelf/elf_strptr.c @@ -31,7 +31,7 @@ #include "_libelf.h" -ELFTC_VCSID("$Id: elf_strptr.c 2990 2014-03-17 09:56:58Z jkoshy $"); +ELFTC_VCSID("$Id: elf_strptr.c 2271 2011-12-03 17:06:35Z jkoshy $"); /* * Convert an ELF section#,offset pair to a string pointer. @@ -42,8 +42,8 @@ elf_strptr(Elf *e, size_t scndx, size_t offset) { Elf_Scn *s; Elf_Data *d; + size_t alignment, count; GElf_Shdr shdr; - uint64_t alignment, count; if (e == NULL || e->e_kind != ELF_K_ELF) { LIBELF_SET_ERROR(ARGUMENT, 0); @@ -90,7 +90,7 @@ elf_strptr(Elf *e, size_t scndx, size_t offset) * account 'holes' in coverage of the section introduced * by alignment requirements. */ - count = (uint64_t) 0; /* cumulative count of bytes seen */ + count = (size_t) 0; /* cumulative count of bytes seen */ while ((d = elf_getdata(s, d)) != NULL && count <= offset) { if (d->d_buf == NULL || d->d_size == 0) |