diff options
author | Alan Modra <amodra@gmail.com> | 2023-08-07 14:40:35 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-08-09 08:48:09 +0930 |
commit | 226f9f4fadb087875ef98a0a55d614236c6241b3 (patch) | |
tree | e6c63b104143dd86acf739d5633649582668224e /bfd/coff-ia64.c | |
parent | feddea4b466ce4f2bb2301fd2d4bef56e8d09ccc (diff) | |
download | gdb-226f9f4fadb087875ef98a0a55d614236c6241b3.zip gdb-226f9f4fadb087875ef98a0a55d614236c6241b3.tar.gz gdb-226f9f4fadb087875ef98a0a55d614236c6241b3.tar.bz2 |
Rename bfd_bread and bfd_bwrite
These were renamed from bfd_read and bfd_write back in 2001 when they
lost an unnecessary parameter. Rename them back, and get rid of a few
casts that are only needed without prototyped functions (K&R C).
Diffstat (limited to 'bfd/coff-ia64.c')
-rw-r--r-- | bfd/coff-ia64.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/bfd/coff-ia64.c b/bfd/coff-ia64.c index 141c4fa..4baf141 100644 --- a/bfd/coff-ia64.c +++ b/bfd/coff-ia64.c @@ -76,9 +76,8 @@ ia64coff_object_p (bfd *abfd) struct external_PEI_IMAGE_hdr image_hdr; file_ptr offset; - if (bfd_seek (abfd, (file_ptr) 0, SEEK_SET) != 0 - || (bfd_bread (&dos_hdr, (bfd_size_type) sizeof (dos_hdr), abfd) - != sizeof (dos_hdr))) + if (bfd_seek (abfd, 0, SEEK_SET) != 0 + || (bfd_read (&dos_hdr, sizeof (dos_hdr), abfd) != sizeof (dos_hdr))) { if (bfd_get_error () != bfd_error_system_call) bfd_set_error (bfd_error_wrong_format); @@ -103,7 +102,7 @@ ia64coff_object_p (bfd *abfd) offset = H_GET_32 (abfd, dos_hdr.e_lfanew); if (bfd_seek (abfd, offset, SEEK_SET) != 0 - || (bfd_bread (&image_hdr, (bfd_size_type) sizeof (image_hdr), abfd) + || (bfd_read (&image_hdr, sizeof (image_hdr), abfd) != sizeof (image_hdr))) { if (bfd_get_error () != bfd_error_system_call) |