summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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))