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).
This commit is contained in:
Alan Modra
2023-08-07 14:40:35 +09:30
parent feddea4b46
commit 226f9f4fad
93 changed files with 928 additions and 965 deletions

View File

@@ -62,7 +62,7 @@ netbsd_core_file_p (bfd *abfd)
struct coreseg coreseg;
size_t amt = sizeof core;
val = bfd_bread (&core, amt, abfd);
val = bfd_read (&core, amt, abfd);
if (val != sizeof core)
{
/* Too small to be a core file. */
@@ -93,7 +93,7 @@ netbsd_core_file_p (bfd *abfd)
if (bfd_seek (abfd, offset, SEEK_SET) != 0)
goto punt;
val = bfd_bread (&coreseg, sizeof coreseg, abfd);
val = bfd_read (&coreseg, sizeof coreseg, abfd);
if (val != sizeof coreseg)
{
bfd_set_error (bfd_error_file_truncated);