summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2013-12-07 15:49:16 +0000
committerkib <kib@FreeBSD.org>2013-12-07 15:49:16 +0000
commitab7bbad691c7c6a1dff5695bee95cc25cff114ce (patch)
treed2addd4f6b9c33dcace09c13685b5f7df07246b9 /libexec
parent299465598781a14436aeb29648a32771f16eaa5e (diff)
downloadFreeBSD-src-ab7bbad691c7c6a1dff5695bee95cc25cff114ce.zip
FreeBSD-src-ab7bbad691c7c6a1dff5695bee95cc25cff114ce.tar.gz
Cast Elf_Addr to void * to match the free_aligned() argument type.
Found by: gcc Sponsored by: The FreeBSD Foundation MFC after: 6 days
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rtld-elf/rtld.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c
index c067a64..24e56b7 100644
--- a/libexec/rtld-elf/rtld.c
+++ b/libexec/rtld-elf/rtld.c
@@ -4369,11 +4369,11 @@ free_tls(void *tls, size_t tcbsize, size_t tcbalign)
tlsstart = tlsend - size;
for (i = 0; i < dtvsize; i++) {
if (dtv[i + 2] != 0 && (dtv[i + 2] < tlsstart || dtv[i + 2] > tlsend)) {
- free_aligned(dtv[i + 2]);
+ free_aligned((void *)dtv[i + 2]);
}
}
- free_aligned(tlsstart);
+ free_aligned((void *)tlsstart);
free((void*) dtv);
}
OpenPOWER on IntegriCloud