aboutsummaryrefslogtreecommitdiff
path: root/sim/rx
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 /sim/rx
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 'sim/rx')
-rw-r--r--sim/rx/load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/rx/load.c b/sim/rx/load.c
index 2378094..ffb262f 100644
--- a/sim/rx/load.c
+++ b/sim/rx/load.c
@@ -153,7 +153,7 @@ rx_load (bfd *prog, host_callback *callback)
fprintf (stderr, "Failed to seek to offset %lx\n", (long) offset);
continue;
}
- if (bfd_bread (buf, size, prog) != size)
+ if (bfd_read (buf, size, prog) != size)
{
fprintf (stderr, "Failed to read %" PRIx64 " bytes\n",
(uint64_t) size);