aboutsummaryrefslogtreecommitdiff
path: root/gprof/gprof.c
diff options
context:
space:
mode:
authorSean Eric Fagan <sef@cygnus>1992-03-27 22:11:14 +0000
committerSean Eric Fagan <sef@cygnus>1992-03-27 22:11:14 +0000
commit46f88c11388317086f7963b7ff3cfdd0aad48941 (patch)
treeafcecdfcf9d8727fed17c3921872967349f33d0a /gprof/gprof.c
parenta95888ed71f7a05536e5effabf054a624d71faa7 (diff)
downloadgdb-46f88c11388317086f7963b7ff3cfdd0aad48941.zip
gdb-46f88c11388317086f7963b7ff3cfdd0aad48941.tar.gz
gdb-46f88c11388317086f7963b7ff3cfdd0aad48941.tar.bz2
More cleanups for gprof, especially with the '386 target.
Diffstat (limited to 'gprof/gprof.c')
-rw-r--r--gprof/gprof.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gprof/gprof.c b/gprof/gprof.c
index b2c5e33..ce4c4e0 100644
--- a/gprof/gprof.c
+++ b/gprof/gprof.c
@@ -230,7 +230,7 @@ bfd *abfd;
i = get_symtab_upper_bound (abfd); /* This will probably give us more
* than we need, but that's ok.
*/
- syms = malloc (i);
+ syms = (asymbol**)malloc (i);
nosyms = bfd_canonicalize_symtab (abfd, syms);
nname = 0;
@@ -355,8 +355,8 @@ openpfile(filename)
done();
}
fread(&tmp, sizeof(struct hdr), 1, pfile);
- tmp.lowpc = bfd_get_32 (abfd, &tmp.lowpc);
- tmp.highpc = bfd_get_32 (abfd, &tmp.highpc);
+ tmp.lowpc = (char*)bfd_get_32 (abfd, &tmp.lowpc);
+ tmp.highpc = (char*)bfd_get_32 (abfd, &tmp.highpc);
tmp.ncnt = bfd_get_32 (abfd, &tmp.ncnt);
if ( s_highpc != 0 && ( tmp.lowpc != h.lowpc ||