aboutsummaryrefslogtreecommitdiff
path: root/bfd/libbfd.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-08-07 14:40:35 +0930
committerAlan Modra <amodra@gmail.com>2023-08-09 08:48:09 +0930
commit226f9f4fadb087875ef98a0a55d614236c6241b3 (patch)
treee6c63b104143dd86acf739d5633649582668224e /bfd/libbfd.h
parentfeddea4b466ce4f2bb2301fd2d4bef56e8d09ccc (diff)
downloadfsf-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/libbfd.h')
-rw-r--r--bfd/libbfd.h4
1 files changed, 2 insertions, 2 deletions
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);
}