summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2015-09-17 19:21:55 +0000
committerRich Felker <dalias@aerifal.cx>2015-09-17 19:21:55 +0000
commite6076c99dd7b6caf859f2ea33e70afd14aa78306 (patch)
treefe27fc1196758d8a3aaee719ffd0405369b605ef
parenteb567c12cd4cafa66fd1ed3fdb97af7e70222118 (diff)
downloadmusl-e6076c99dd7b6caf859f2ea33e70afd14aa78306.tar.gz
musl-e6076c99dd7b6caf859f2ea33e70afd14aa78306.tar.bz2
musl-e6076c99dd7b6caf859f2ea33e70afd14aa78306.tar.xz
musl-e6076c99dd7b6caf859f2ea33e70afd14aa78306.zip
remove some useless casts in dynamic linker
-rw-r--r--src/ldso/dynlink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c
index 6e79a77e..dabbbba5 100644
--- a/src/ldso/dynlink.c
+++ b/src/ldso/dynlink.c
@@ -695,9 +695,9 @@ static void decode_dyn(struct dso *p)
if (dyn[0]&(1<<DT_HASH))
p->hashtab = laddr(p, dyn[DT_HASH]);
if (dyn[0]&(1<<DT_RPATH))
- p->rpath_orig = (void *)(p->strings + dyn[DT_RPATH]);
+ p->rpath_orig = p->strings + dyn[DT_RPATH];
if (dyn[0]&(1<<DT_RUNPATH))
- p->rpath_orig = (void *)(p->strings + dyn[DT_RUNPATH]);
+ p->rpath_orig = p->strings + dyn[DT_RUNPATH];
if (search_vec(p->dynv, dyn, DT_GNU_HASH))
p->ghashtab = laddr(p, *dyn);
if (search_vec(p->dynv, dyn, DT_VERSYM))