Don't include stdlib.h, becuase config.h does.
(malloc, realloc): Declarations deleted.
#include <stdio.h>
#ifndef HAVE_STDLIB_H
-char *malloc ();
-char *realloc ();
char *getenv ();
-#else
-#include <stdlib.h>
#endif
char *xmalloc __P ((unsigned));
xmalloc (size)
unsigned size;
{
- char *result = malloc (size);
+ char *result = (char *) malloc (size);
if (!result)
fatal ("virtual memory exhausted", 0);
return result;
char *ptr;
unsigned size;
{
- char *result = realloc (ptr, size);
+ char *result = (char *) realloc (ptr, size);
if (!result)
fatal ("virtual memory exhausted", 0);
return result;