This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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

Fix compiler warning


Subject says it all.

Mark


2000-07-14  Mark Kettenis  <kettenis@gnu.org>

	* dlfcn/dlerror.c (free_key_mem): Add cast to silence compiler
	warning.


Index: dlfcn/dlerror.c
===================================================================
RCS file: /cvs/glibc/libc/dlfcn/dlerror.c,v
retrieving revision 1.5
diff -u -p -r1.5 dlerror.c
--- dlfcn/dlerror.c	2000/07/13 19:39:54	1.5
+++ dlfcn/dlerror.c	2000/07/14 20:26:35
@@ -159,7 +159,7 @@ free_key_mem (void *mem)
 
   if (result->errstring != NULL
       && strcmp (result->errstring, "out of memory") != 0)
-    free (result->errstring);
+    free ((char *)result->errstring);
 
   free (mem);
   __libc_setspecific (key, NULL);

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