summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;