mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
Include <stdlib.h>, for malloc; don't bother with stddef.h.
rpl_malloc returns void *, not char *.
This commit is contained in:
1 parent
e1ddafb2f0
commit
9ff401ebc9
1 file changed
+2
-4
+2
-4
@@ -22,14 +22,12 @@
|
||||
#endif
|
||||
#undef malloc
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
char *malloc ();
|
||||
#include <stdlib.h>
|
||||
|
||||
/* Allocate an N-byte block of memory from the heap.
|
||||
If N is zero, allocate a 1-byte block. */
|
||||
|
||||
char *
|
||||
void *
|
||||
rpl_malloc (size_t n)
|
||||
{
|
||||
if (n == 0)
|
||||
|
||||
Reference in new issue
Block a user