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/elf64-hppa.c | |
parent | feddea4b466ce4f2bb2301fd2d4bef56e8d09ccc (diff) | |
download | binutils-226f9f4fadb087875ef98a0a55d614236c6241b3.zip binutils-226f9f4fadb087875ef98a0a55d614236c6241b3.tar.gz binutils-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/elf64-hppa.c')
-rw-r--r-- | bfd/elf64-hppa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf64-hppa.c b/bfd/elf64-hppa.c index 8e1abb3..c181523 100644 --- a/bfd/elf64-hppa.c +++ b/bfd/elf64-hppa.c @@ -2720,7 +2720,7 @@ elf64_hppa_section_from_phdr (bfd *abfd, Elf_Internal_Phdr *hdr, int sec_index, if (bfd_seek (abfd, hdr->p_offset, SEEK_SET) != 0) return false; - if (bfd_bread (&sig, 4, abfd) != 4) + if (bfd_read (&sig, 4, abfd) != 4) return false; elf_tdata (abfd)->core->signal = sig; |