summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-08-11 01:44:00 +0000
committerRichard M. Stallman <rms@gnu.org>1995-08-11 01:44:00 +0000
commit65119039af34599f5f9fe7df94acf774c1a6237e (patch)
tree2ee375507b5648f47d7e6ce099f52b8a6a223ceb /lib-src
parent0d8ef3f41adc67c1d931ae2fb7b63d621b9128c9 (diff)
downloademacs-65119039af34599f5f9fe7df94acf774c1a6237e.tar.gz
(xmalloc, xrealloc): Use return-type long *.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/fakemail.c12
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;