aboutsummaryrefslogtreecommitdiff
path: root/gprof/core.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-08-07 18:44:27 +0000
committerIan Lance Taylor <ian@airs.com>1996-08-07 18:44:27 +0000
commit1c34a108791e071c2d75989b26bb1d260e646d18 (patch)
treeff375083ae3b1bb703881b673961736ef92d70d5 /gprof/core.c
parent2792727822834ebdde41d5559311ba0667740fa9 (diff)
downloadgdb-1c34a108791e071c2d75989b26bb1d260e646d18.zip
gdb-1c34a108791e071c2d75989b26bb1d260e646d18.tar.gz
gdb-1c34a108791e071c2d75989b26bb1d260e646d18.tar.bz2
Wed Aug 7 14:43:51 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
* core.c (read_function_mappings): Cast xmalloc return.
Diffstat (limited to 'gprof/core.c')
-rw-r--r--gprof/core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gprof/core.c b/gprof/core.c
index f2e341c..3103dc2 100644
--- a/gprof/core.c
+++ b/gprof/core.c
@@ -66,7 +66,8 @@ DEFUN (read_function_mappings, (filename), const char *filename)
}
/* Now we know how big we need to make our table. */
- symbol_map = xmalloc (count * sizeof (struct function_map));
+ symbol_map = ((struct function_map *)
+ xmalloc (count * sizeof (struct function_map)));
/* Rewind the input file so we can read it again. */
rewind (file);