diff options
author | Érico Nogueira <ericonr@disroot.org> | 2021-04-20 16:15:18 -0300 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2021-04-20 15:40:27 -0400 |
commit | b7a130e0b9195625ea96044ea9fbe99167b112bf (patch) | |
tree | 8748459aec51f5ecff45a19032095167fc6ab8c1 | |
parent | bd3b9c4ca5e93f10f7fd891b8c07cc0c5dfd198f (diff) | |
download | musl-b7a130e0b9195625ea96044ea9fbe99167b112bf.tar.gz musl-b7a130e0b9195625ea96044ea9fbe99167b112bf.tar.bz2 musl-b7a130e0b9195625ea96044ea9fbe99167b112bf.tar.xz musl-b7a130e0b9195625ea96044ea9fbe99167b112bf.zip |
remove unnecessary cast for map_library return
the function already returns (void *)
-rw-r--r-- | ldso/dynlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ldso/dynlink.c b/ldso/dynlink.c index 8b67ef59..5b9c8be4 100644 --- a/ldso/dynlink.c +++ b/ldso/dynlink.c @@ -1831,7 +1831,7 @@ void __dls3(size_t *sp, size_t *auxv) dprintf(2, "%s: cannot load %s: %s\n", ldname, argv[0], strerror(errno)); _exit(1); } - Ehdr *ehdr = (void *)map_library(fd, &app); + Ehdr *ehdr = map_library(fd, &app); if (!ehdr) { dprintf(2, "%s: %s: Not a valid dynamic program\n", ldname, argv[0]); _exit(1); |