From 226f9f4fadb087875ef98a0a55d614236c6241b3 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 7 Aug 2023 14:40:35 +0930 Subject: 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). --- bfd/bfdio.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bfd/bfdio.c') 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; -- cgit v1.1