From 65119039af34599f5f9fe7df94acf774c1a6237e Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 11 Aug 1995 01:44:00 +0000 Subject: [PATCH] (xmalloc, xrealloc): Use return-type long *. --- lib-src/fakemail.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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; -- 2.39.2