Formerly misc.c.~22~

This commit is contained in:
Roland McGrath 1993-01-13 21:23:01 +00:00
parent f0c68224d6
commit 5c44db1b5f

4
misc.c
View file

@ -308,7 +308,7 @@ char *
xmalloc (size)
unsigned int size;
{
char *result = malloc (size);
char *result = (char *) malloc (size);
if (result == 0)
fatal ("virtual memory exhausted");
return result;
@ -320,7 +320,7 @@ xrealloc (ptr, size)
char *ptr;
unsigned int size;
{
char *result = realloc (ptr, size);
char *result = (char *) realloc (ptr, size);
if (result == 0)
fatal ("virtual memory exhausted");
return result;