diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-07-11 23:27:08 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-07-11 23:27:08 +0000 |
commit | d2363d3bedb702a3bb9e4244a0f4027db47327e4 (patch) | |
tree | de14d40b803052c183d3783399b74705f3812146 /ldso | |
parent | 84cc817ba5e546e0504767a1f7f286b17a838968 (diff) |
dont use void* when we know the type of pointer we want
Diffstat (limited to 'ldso')
-rw-r--r-- | ldso/ldso/x86_64/dl-sysdep.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ldso/ldso/x86_64/dl-sysdep.h b/ldso/ldso/x86_64/dl-sysdep.h index a156e7be3..ae12deb0d 100644 --- a/ldso/ldso/x86_64/dl-sysdep.h +++ b/ldso/ldso/x86_64/dl-sysdep.h @@ -105,10 +105,10 @@ static __always_inline void elf_machine_relative(Elf64_Addr load_off, const Elf64_Addr rel_addr, Elf64_Word relative_count) { - Elf64_Rela *rpnt = (void *)rel_addr; + Elf64_Rela *rpnt = (Elf64_Rela*)rel_addr; --rpnt; do { - Elf64_Addr *const reloc_addr = (void *) (load_off + (++rpnt)->r_offset); + Elf64_Addr *const reloc_addr = (Elf64_Addr*)(load_off + (++rpnt)->r_offset); *reloc_addr = load_off + rpnt->r_addend; } while (--relative_count); |