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/libbfd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bfd/libbfd.h') diff --git a/bfd/libbfd.h b/bfd/libbfd.h index 1fc88a8..a84febd 100644 --- a/bfd/libbfd.h +++ b/bfd/libbfd.h @@ -890,7 +890,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); } @@ -913,7 +913,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); } -- cgit v1.1