aboutsummaryrefslogtreecommitdiff
path: root/bfd/aout-target.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/aout-target.h
parentfeddea4b466ce4f2bb2301fd2d4bef56e8d09ccc (diff)
downloadgdb-226f9f4fadb087875ef98a0a55d614236c6241b3.zip
gdb-226f9f4fadb087875ef98a0a55d614236c6241b3.tar.gz
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/aout-target.h')
-rw-r--r--bfd/aout-target.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/aout-target.h b/bfd/aout-target.h
index 7765f5c..f427ffc 100644
--- a/bfd/aout-target.h
+++ b/bfd/aout-target.h
@@ -136,7 +136,7 @@ MY (object_p) (bfd *abfd)
bfd_cleanup cleanup;
size_t amt = EXEC_BYTES_SIZE;
- if (bfd_bread ((void *) &exec_bytes, amt, abfd) != amt)
+ if (bfd_read (&exec_bytes, amt, abfd) != amt)
{
if (bfd_get_error () != bfd_error_system_call)
bfd_set_error (bfd_error_wrong_format);