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
commit321b3a7ee323f41b383ffb8d929cda54628574f0 (patch)
tree99df2cbfd8a25e9f7e5a07008371eb890e3dcdd7 /lib-src
parent8217079803cd4922c975105ee95c4ce346b6c42f (diff)
downloademacs-321b3a7ee323f41b383ffb8d929cda54628574f0.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;