This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]