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/libbfd-in.h | |
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/libbfd-in.h')
-rw-r--r-- | bfd/libbfd-in.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/libbfd-in.h b/bfd/libbfd-in.h index 03ae099..fc4b7bc 100644 --- a/bfd/libbfd-in.h +++ b/bfd/libbfd-in.h @@ -884,7 +884,7 @@ _bfd_alloc_and_read (bfd *abfd, bfd_size_type asize, bfd_size_type rsize) mem = bfd_alloc (abfd, asize); if (mem != NULL) { - if (bfd_bread (mem, rsize, abfd) == rsize) + if (bfd_read (mem, rsize, abfd) == rsize) return mem; bfd_release (abfd, mem); } @@ -907,7 +907,7 @@ _bfd_malloc_and_read (bfd *abfd, bfd_size_type asize, bfd_size_type rsize) mem = bfd_malloc (asize); if (mem != NULL) { - if (bfd_bread (mem, rsize, abfd) == rsize) + if (bfd_read (mem, rsize, abfd) == rsize) return mem; free (mem); } |