Commit 0404b62c authored by Richard M. Stallman's avatar Richard M. Stallman

(xmalloc, xrealloc): Declare them long *.

parent 03cdafdf
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment