# HG changeset patch # User Richard M. Stallman # Date 1045306435 0 # Node ID c6c565402859ca51da9e79043b2a232e11aa7d0c # Parent dc31cb80909b8819e0441a4971278ca87c2aeb8e Cast result of malloc and realloc. Don't include stdlib.h, becuase config.h does. (malloc, realloc): Declarations deleted. diff -r dc31cb80909b -r c6c565402859 lib-src/cvtmail.c --- a/lib-src/cvtmail.c Sat Feb 15 10:52:52 2003 +0000 +++ b/lib-src/cvtmail.c Sat Feb 15 10:53:55 2003 +0000 @@ -40,11 +40,7 @@ #include #ifndef HAVE_STDLIB_H -char *malloc (); -char *realloc (); char *getenv (); -#else -#include #endif char *xmalloc __P ((unsigned)); @@ -168,7 +164,7 @@ xmalloc (size) unsigned size; { - char *result = malloc (size); + char *result = (char *) malloc (size); if (!result) fatal ("virtual memory exhausted", 0); return result; @@ -179,7 +175,7 @@ char *ptr; unsigned size; { - char *result = realloc (ptr, size); + char *result = (char *) realloc (ptr, size); if (!result) fatal ("virtual memory exhausted", 0); return result;