From e6076c99dd7b6caf859f2ea33e70afd14aa78306 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 17 Sep 2015 19:21:55 +0000 Subject: [PATCH] remove some useless casts in dynamic linker --- src/ldso/dynlink.c | 4 ++-- 1 file 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<hashtab = laddr(p, dyn[DT_HASH]); if (dyn[0]&(1<rpath_orig = (void *)(p->strings + dyn[DT_RPATH]); + p->rpath_orig = p->strings + dyn[DT_RPATH]; if (dyn[0]&(1<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)) -- 2.25.1