From: Richard M. Stallman Date: Fri, 11 Aug 1995 01:44:00 +0000 (+0000) Subject: (xmalloc, xrealloc): Use return-type long *. X-Git-Tag: emacs-19.34~3027 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=65119039af34599f5f9fe7df94acf774c1a6237e;p=emacs.git (xmalloc, xrealloc): Use return-type long *. --- diff --git a/lib-src/fakemail.c b/lib-src/fakemail.c index da3911b4b49..4a2618ad5ce 100644 --- a/lib-src/fakemail.c +++ b/lib-src/fakemail.c @@ -166,22 +166,22 @@ fatal (s1, s2) /* Like malloc but get fatal error if memory is exhausted. */ -static char * +static long * xmalloc (size) int size; { - char *result = (char *) malloc (((unsigned) size)); - if (result == ((char *) NULL)) + long *result = (long *) malloc (((unsigned) size)); + if (result == ((long *) NULL)) fatal ("virtual memory exhausted", 0); return result; } -static char * +static long * xrealloc (ptr, size) - char *ptr; + long *ptr; int size; { - char *result = (char *) realloc (ptr, ((unsigned) size)); + long *result = (long *) realloc (ptr, ((unsigned) size)); if (result == ((char *) NULL)) fatal ("virtual memory exhausted"); return result;