remove some useless casts in dynamic linker
authorRich Felker <dalias@aerifal.cx>
Thu, 17 Sep 2015 19:21:55 +0000 (19:21 +0000)
committerRich Felker <dalias@aerifal.cx>
Thu, 17 Sep 2015 19:21:55 +0000 (19:21 +0000)
src/ldso/dynlink.c

index 6e79a77e67b90dc2ac3ce4891d38ae4aa8c6d484..dabbbba5d7b535dc3bf942cf644cd748b96fd76a 100644 (file)
@@ -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))