From fde56e5cc5011d8c0de39290af0e76d884d07624 Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Fri, 7 Oct 2011 11:00:13 -0400 Subject: elf/dl-load.c: Avoid warning --- ChangeLog | 4 ++++ elf/dl-load.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 88b9b4f6fe..c369539f27 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2011-09-12 Marek Polacek + + * elf/dl-load.c (lose): Add cast to avoid warning. + 2011-10-07 Ulrich Drepper * po/ca.po: Update from translation team. diff --git a/elf/dl-load.c b/elf/dl-load.c index b8a2659af1..f3717ea58c 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c @@ -889,7 +889,7 @@ lose (int code, int fd, const char *name, char *realname, struct link_map *l, if (fd != -1) (void) __close (fd); if (l != NULL && l->l_origin != (char *) -1l) - free (l->l_origin); + free ((char *) l->l_origin); free (l); free (realname); -- cgit v1.2.3