aboutsummaryrefslogtreecommitdiff
path: root/gprof
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1993-02-26 00:03:24 +0000
committerPer Bothner <per@bothner.com>1993-02-26 00:03:24 +0000
commit8a6e5b69e43c078963d790ba0fc1bb823d43954e (patch)
treef9485cecd5dc51afef1586f4cac3b6d783cdd481 /gprof
parent3048fb38f06fb641ac92c042f18786d672749491 (diff)
downloadgdb-8a6e5b69e43c078963d790ba0fc1bb823d43954e.zip
gdb-8a6e5b69e43c078963d790ba0fc1bb823d43954e.tar.gz
gdb-8a6e5b69e43c078963d790ba0fc1bb823d43954e.tar.bz2
* printgprof (xmalloc, xrealloc): Cast results of malloc
and realloc to PTR.
Diffstat (limited to 'gprof')
-rw-r--r--gprof/ChangeLog5
-rw-r--r--gprof/printgprof.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gprof/ChangeLog b/gprof/ChangeLog
index c466d45..f97aaf3 100644
--- a/gprof/ChangeLog
+++ b/gprof/ChangeLog
@@ -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
diff --git a/gprof/printgprof.c b/gprof/printgprof.c
index e8d5582..a717673 100644
--- a/gprof/printgprof.c
+++ b/gprof/printgprof.c
@@ -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);