diff options
author | Richard M. Stallman <rms@gnu.org> | 2003-02-15 10:53:55 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2003-02-15 10:53:55 +0000 |
commit | f67937cc2decf6544cf9b14d17f395fde3b9b29d (patch) | |
tree | d3384dfb15b6c8bf31b73015999d73d7c347a6ef | |
parent | d1d41ace21608aa560c7f362baccc78f8356e706 (diff) | |
download | emacs-f67937cc2decf6544cf9b14d17f395fde3b9b29d.tar.gz |
Cast result of malloc and realloc.
Don't include stdlib.h, becuase config.h does.
(malloc, realloc): Declarations deleted.
-rw-r--r-- | lib-src/cvtmail.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib-src/cvtmail.c b/lib-src/cvtmail.c index 453267f4aad..5a4d3c70952 100644 --- a/lib-src/cvtmail.c +++ b/lib-src/cvtmail.c @@ -40,11 +40,7 @@ Boston, MA 02111-1307, USA. */ #include <stdio.h> #ifndef HAVE_STDLIB_H -char *malloc (); -char *realloc (); char *getenv (); -#else -#include <stdlib.h> #endif char *xmalloc __P ((unsigned)); @@ -168,7 +164,7 @@ char * 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 @@ xrealloc (ptr, size) char *ptr; unsigned size; { - char *result = realloc (ptr, size); + char *result = (char *) realloc (ptr, size); if (!result) fatal ("virtual memory exhausted", 0); return result; |