summaryrefslogtreecommitdiffstats
path: root/sbin/ldconfig
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2004-08-14 17:46:10 +0000
committerstefanf <stefanf@FreeBSD.org>2004-08-14 17:46:10 +0000
commitbcdeb8e73ca7fe84a2caa06a504cae1e779e25af (patch)
treebe6242cdf28f91c19a82810c41a57128a3771413 /sbin/ldconfig
parentc7e2313e865d292a348f00799e7c73cb552cda10 (diff)
downloadFreeBSD-src-bcdeb8e73ca7fe84a2caa06a504cae1e779e25af.zip
FreeBSD-src-bcdeb8e73ca7fe84a2caa06a504cae1e779e25af.tar.gz
Avoid using void pointers in additive expressions.
PR: 56653
Diffstat (limited to 'sbin/ldconfig')
-rw-r--r--sbin/ldconfig/ldconfig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ldconfig/ldconfig.c b/sbin/ldconfig/ldconfig.c
index 5c0eb1d..d6c889b 100644
--- a/sbin/ldconfig/ldconfig.c
+++ b/sbin/ldconfig/ldconfig.c
@@ -578,8 +578,8 @@ readhints()
}
close(fd);
- blist = (struct hints_bucket *)(addr + hdr->hh_hashtab);
- strtab = (char *)(addr + hdr->hh_strtab);
+ blist = (struct hints_bucket *)((char *)addr + hdr->hh_hashtab);
+ strtab = (char *)addr + hdr->hh_strtab;
if (hdr->hh_version >= LD_HINTS_VERSION_2)
add_search_path(strtab + hdr->hh_dirlist);
OpenPOWER on IntegriCloud