[PATCH] elf/dl-load.c: Avoid warning

Marek Polacek mpolacek@redhat.com
Mon Sep 12 12:58:00 GMT 2011


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



More information about the Libc-alpha mailing list