diff options
author | stefanf <stefanf@FreeBSD.org> | 2004-08-14 17:46:10 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2004-08-14 17:46:10 +0000 |
commit | bcdeb8e73ca7fe84a2caa06a504cae1e779e25af (patch) | |
tree | be6242cdf28f91c19a82810c41a57128a3771413 /sbin/ldconfig/ldconfig.c | |
parent | c7e2313e865d292a348f00799e7c73cb552cda10 (diff) | |
download | FreeBSD-src-bcdeb8e73ca7fe84a2caa06a504cae1e779e25af.zip FreeBSD-src-bcdeb8e73ca7fe84a2caa06a504cae1e779e25af.tar.gz |
Avoid using void pointers in additive expressions.
PR: 56653
Diffstat (limited to 'sbin/ldconfig/ldconfig.c')
-rw-r--r-- | sbin/ldconfig/ldconfig.c | 4 |
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); |