Explorar el Código

grr. It's a void *, not a char *.

Eric Andersen hace 21 años
padre
commit
78c6b3eb88
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      include/stdlib.h

+ 1 - 1
include/stdlib.h

@@ -552,7 +552,7 @@ extern void *calloc (size_t __nmemb, size_t __size)
  * style returning-a-valid-pointer-for-malloc(0) behavior.  This
  * calls malloc() as usual, but if __size is zero, we allocate and
  * return a 1-byte block instead....  sigh... */ 
-static __inline char * rpl_malloc (size_t __size)
+static __inline void *rpl_malloc (size_t __size)
 {
     if (__size == 0) {
 	__size++;