From 5c44db1b5f8c506cc083c9ea67db7cae823d27f4 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 13 Jan 1993 21:23:01 +0000 Subject: [PATCH] Formerly misc.c.~22~ --- misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc.c b/misc.c index 3904410..8b7fcb0 100644 --- a/misc.c +++ b/misc.c @@ -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; -- 2.7.4