Mercurial > emacs
changeset 12833:25464bf61eb1
(xmalloc, xrealloc): Use return-type long *.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 11 Aug 1995 01:44:00 +0000 |
parents | 0d750e41c4f2 |
children | 40ed89c082fd |
files | lib-src/fakemail.c |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/lib-src/fakemail.c Fri Aug 11 00:55:47 1995 +0000 +++ b/lib-src/fakemail.c Fri Aug 11 01:44:00 1995 +0000 @@ -166,22 +166,22 @@ /* 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;