* printgprof (xmalloc, xrealloc): Cast results of malloc

and realloc to PTR.
This commit is contained in:
Per Bothner 1993-02-26 00:03:24 +00:00
parent 3048fb38f0
commit 8a6e5b69e4
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Thu Feb 25 16:01:50 1993 Per Bothner (bothner@rtl.cygnus.com)
* printgprof (xmalloc, xrealloc): Cast results of malloc
and realloc to PTR.
Wed Feb 3 13:55:33 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
* Makefile.in: created info, install-info, dvi

View File

@ -766,7 +766,7 @@ PTR
xmalloc (size)
long size;
{
PTR val = malloc (size);
PTR val = (PTR) malloc (size);
if (val == NULL) {
fprintf (stderr, "virtual memory exhaused\n");
exit (1);
@ -779,7 +779,7 @@ xrealloc (oldval, size)
PTR oldval;
long size;
{
PTR val = realloc (oldval, size);
PTR val = (PTR) realloc (oldval, size);
if (val == NULL) {
fprintf (stderr, "virtual memory exhaused\n");
exit (1);