diff lib-src/b2m.c @ 11674:754722efad75

(xmalloc, xrealloc): Declare them long *.
author Richard M. Stallman <rms@gnu.org>
date Thu, 04 May 1995 06:46:37 +0000
parents a096f82d87d9
children 13d38dfedb51
line wrap: on
line diff
--- a/lib-src/b2m.c	Thu May 04 06:46:14 1995 +0000
+++ b/lib-src/b2m.c	Thu May 04 06:46:37 1995 +0000
@@ -64,7 +64,7 @@
 
 extern char *strtok();
 
-char *xmalloc (), *xrealloc ();
+long *xmalloc (), *xrealloc ();
 char *concat ();
 long readline ();
 void fatal ();
@@ -229,22 +229,22 @@
 /*
  * 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;