remove unnecessary cast for map_library return

the function already returns (void *)
This commit is contained in:
Érico Nogueira 2021-04-20 16:15:18 -03:00 committed by Rich Felker
parent bd3b9c4ca5
commit b7a130e0b9
1 changed files with 1 additions and 1 deletions

View File

@ -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);