about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-07-05 06:56:12 -0400
committerUlrich Drepper <drepper@gmail.com>2011-07-05 06:56:12 -0400
commitf15f1e45ba281568cb77d4e10de574ee2b86f2a6 (patch)
tree21c270a3ba62ef60125c8a0d4b311df25485c678
parent5e9b6af4a9bb2aad0e1929e88b52009d14cb6831 (diff)
downloadglibc-f15f1e45ba281568cb77d4e10de574ee2b86f2a6.tar.gz
glibc-f15f1e45ba281568cb77d4e10de574ee2b86f2a6.tar.xz
glibc-f15f1e45ba281568cb77d4e10de574ee2b86f2a6.zip
Avoid warning.
-rw-r--r--ChangeLog4
-rw-r--r--nscd/nscd_getserv_r.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 63887b7913..18e5fb0773 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-07-05  Ulrich Drepper  <drepper@gmail.com>
+
+	* nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
+
 2011-07-02  Roland McGrath  <roland@hack.frob.com>
 
 	* Makerules ($(common-objpfx)format.lds): Fail if result is empty.
diff --git a/nscd/nscd_getserv_r.c b/nscd/nscd_getserv_r.c
index f9ef0565d8..3b7dc4b620 100644
--- a/nscd/nscd_getserv_r.c
+++ b/nscd/nscd_getserv_r.c
@@ -374,7 +374,7 @@ nscd_getserv_r (const char *crit, size_t critlen, const char *proto,
       if (retval != -1)
 	{
 	  if (!alloca_aliases_len)
-	    free (aliases_len);
+	    free ((void *) aliases_len);
 	  goto retry;
 	}
     }