]> git.ipfire.org Git - thirdparty/make.git/commitdiff
Formerly misc.c.~22~
authorRoland McGrath <roland@redhat.com>
Wed, 13 Jan 1993 21:23:01 +0000 (21:23 +0000)
committerRoland McGrath <roland@redhat.com>
Wed, 13 Jan 1993 21:23:01 +0000 (21:23 +0000)
misc.c

diff --git a/misc.c b/misc.c
index 39044106d8795ffb349393ea6d31c0747a75211d..8b7fcb0e8e4ef438717f95958c4cbe5f45d1a309 100644 (file)
--- 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;