diff options
author | Richard M. Stallman <rms@gnu.org> | 1995-08-11 01:44:00 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1995-08-11 01:44:00 +0000 |
commit | a2664d38bc3da2b7f6a6675caf0e28202fcc69d6 (patch) | |
tree | 725e5f6cbcd731245299ab396cc6ebbf709cb7d8 /lib-src | |
parent | 5579936fbdea8f64ebba3fa12b3f33584dbfa56a (diff) | |
download | emacs-a2664d38bc3da2b7f6a6675caf0e28202fcc69d6.tar.gz |
(xmalloc, xrealloc): Use return-type long *.
Diffstat (limited to 'lib-src')
-rw-r--r-- | lib-src/fakemail.c | 12 |
1 files 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; |