changeset 11674:754722efad75

(xmalloc, xrealloc): Declare them long *.
author Richard M. Stallman <rms@gnu.org>
date Thu, 04 May 1995 06:46:37 +0000
parents 46d2178719ad
children 496576df5d46
files lib-src/b2m.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
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;