summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c4
1 files 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;