aboutsummaryrefslogtreecommitdiff
path: root/bfd/oasys.c
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1991-04-18 01:50:06 +0000
committerK. Richard Pixley <rich@cygnus>1991-04-18 01:50:06 +0000
commita6dab0710c98461de0238b5f7b5c6c2237ced409 (patch)
treee0f2a8b4a5835f84d94b461378aea732ea8c12bf /bfd/oasys.c
parent93d8be3c7c8ca479e7cd2f8db247cfb213bf1fc5 (diff)
downloadgdb-a6dab0710c98461de0238b5f7b5c6c2237ced409.zip
gdb-a6dab0710c98461de0238b5f7b5c6c2237ced409.tar.gz
gdb-a6dab0710c98461de0238b5f7b5c6c2237ced409.tar.bz2
Killed a few warnings.
Diffstat (limited to 'bfd/oasys.c')
-rw-r--r--bfd/oasys.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/oasys.c b/bfd/oasys.c
index bd8695e..d5657a1 100644
--- a/bfd/oasys.c
+++ b/bfd/oasys.c
@@ -607,7 +607,7 @@ DEFUN(oasys_new_section_hook,(abfd, newsect),
bfd *abfd AND
asection *newsect)
{
- newsect->used_by_bfd = (oasys_per_section_type *)
+ newsect->used_by_bfd = (PTR)
oasys_malloc(abfd, sizeof(oasys_per_section_type));
oasys_per_section( newsect)->data = (bfd_byte *)NULL;
oasys_per_section(newsect)->section = newsect;
@@ -638,7 +638,7 @@ DEFUN(oasys_get_section_contents,(abfd, section, location, offset, count),
file_ptr offset AND
unsigned int count)
{
- oasys_per_section_type *p = section->used_by_bfd;
+ oasys_per_section_type *p = (oasys_per_section_type *) section->used_by_bfd;
oasys_slurp_section_data(abfd);
(void) memcpy(location, p->data + offset, count);
return true;
@@ -1144,7 +1144,7 @@ oasys_stat_arch_elt(abfd, buf)
bfd *abfd;
struct stat *buf;
{
- oasys_module_info_type *mod = abfd->arelt_data;
+ oasys_module_info_type *mod = (oasys_module_info_type *) abfd->arelt_data;
if (mod == (oasys_module_info_type *)NULL) {
bfd_error = invalid_operation;
return -1;