This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] elf/dl-load.c: Avoid warning
- From: Marek Polacek <mpolacek at redhat dot com>
- To: libc-alpha <libc-alpha at sourceware dot org>
- Date: Mon, 12 Sep 2011 14:00:52 +0200
- Subject: [PATCH] elf/dl-load.c: Avoid warning
2011-09-12 Marek Polacek <mpolacek@redhat.com>
* elf/dl-load.c (lose): Add cast to avoid warning.
--- libc/elf/dl-load.c.mp 2011-09-12 13:39:53.383542520 +0200
+++ libc/elf/dl-load.c 2011-09-12 13:41:11.195545163 +0200
@@ -889,7 +889,7 @@ lose (int code, int fd, const char *name
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);