]> git.eshelyaron.com Git - emacs.git/commitdiff
(xmalloc, xrealloc): Declare them long *.
authorRichard M. Stallman <rms@gnu.org>
Thu, 4 May 1995 06:46:37 +0000 (06:46 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 4 May 1995 06:46:37 +0000 (06:46 +0000)
lib-src/b2m.c

index 526d173acb66ede1504b3f567a8b48bf7e2cc3d8..d0e41a6ae937683bdac6e431fa13d33ac5cd99e1 100644 (file)
@@ -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;