summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-05-04 06:46:37 +0000
committerRichard M. Stallman <rms@gnu.org>1995-05-04 06:46:37 +0000
commit0404b62c850bf34f17eeb3ed1b09e77ccd81fa03 (patch)
tree45175d2ce2cc0d2b5c7c31168141ce12c0127c6d /lib-src
parent03cdafdfe54b4eb4ec454ee73f780416be3d7c43 (diff)
downloademacs-0404b62c850bf34f17eeb3ed1b09e77ccd81fa03.tar.gz
(xmalloc, xrealloc): Declare them long *.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/b2m.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib-src/b2m.c b/lib-src/b2m.c
index 526d173acb6..d0e41a6ae93 100644
--- a/lib-src/b2m.c
+++ b/lib-src/b2m.c
@@ -64,7 +64,7 @@ struct linebuffer
extern char *strtok();
-char *xmalloc (), *xrealloc ();
+long *xmalloc (), *xrealloc ();
char *concat ();
long readline ();
void fatal ();
@@ -229,22 +229,22 @@ readline (linebuffer, stream)
/*
* Like malloc but get fatal error if memory is exhausted.
*/
-char *
+long *
xmalloc (size)
unsigned int size;
{
- char *result = (char *) malloc (size);
+ long *result = (long *) malloc (size);
if (result == NULL)
fatal ("virtual memory exhausted");
return result;
}
-char *
+long *
xrealloc (ptr, size)
char *ptr;
unsigned int size;
{
- char *result = (char *) realloc (ptr, size);
+ long *result = (long *) realloc (ptr, size);
if (result == NULL)
fatal ("virtual memory exhausted");
return result;