Przeglądaj źródła

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

Eric Andersen 21 lat temu
rodzic
commit
78c6b3eb88
1 zmienionych plików z 1 dodań i 1 usunięć
  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
  * style returning-a-valid-pointer-for-malloc(0) behavior.  This
  * calls malloc() as usual, but if __size is zero, we allocate and
  * calls malloc() as usual, but if __size is zero, we allocate and
  * return a 1-byte block instead....  sigh... */ 
  * 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) {
     if (__size == 0) {
 	__size++; 
 	__size++;