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/bfdio.c | |
parent | feddea4b466ce4f2bb2301fd2d4bef56e8d09ccc (diff) | |
download | fsf-binutils-gdb-226f9f4fadb087875ef98a0a55d614236c6241b3.zip fsf-binutils-gdb-226f9f4fadb087875ef98a0a55d614236c6241b3.tar.gz fsf-binutils-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/bfdio.c')
-rw-r--r-- | bfd/bfdio.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bfd/bfdio.c b/bfd/bfdio.c index e0d47b3..59ac126 100644 --- a/bfd/bfdio.c +++ b/bfd/bfdio.c @@ -231,10 +231,10 @@ DESCRIPTION /* FUNCTION - bfd_bread + bfd_read SYNOPSIS - bfd_size_type bfd_bread (void *, bfd_size_type, bfd *); + bfd_size_type bfd_read (void *, bfd_size_type, bfd *); DESCRIPTION Attempt to read SIZE bytes from ABFD's iostream to PTR. @@ -242,7 +242,7 @@ DESCRIPTION */ bfd_size_type -bfd_bread (void *ptr, bfd_size_type size, bfd *abfd) +bfd_read (void *ptr, bfd_size_type size, bfd *abfd) { file_ptr nread; bfd *element_bfd = abfd; @@ -296,10 +296,10 @@ bfd_bread (void *ptr, bfd_size_type size, bfd *abfd) /* FUNCTION - bfd_bwrite + bfd_write SYNOPSIS - bfd_size_type bfd_bwrite (const void *, bfd_size_type, bfd *); + bfd_size_type bfd_write (const void *, bfd_size_type, bfd *); DESCRIPTION Attempt to write SIZE bytes to ABFD's iostream from PTR. @@ -307,7 +307,7 @@ DESCRIPTION */ bfd_size_type -bfd_bwrite (const void *ptr, bfd_size_type size, bfd *abfd) +bfd_write (const void *ptr, bfd_size_type size, bfd *abfd) { file_ptr nwrote; |