aboutsummaryrefslogtreecommitdiff
path: root/sim/rl78
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/rl78
parentfeddea4b466ce4f2bb2301fd2d4bef56e8d09ccc (diff)
downloadbinutils-226f9f4fadb087875ef98a0a55d614236c6241b3.zip
binutils-226f9f4fadb087875ef98a0a55d614236c6241b3.tar.gz
binutils-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/rl78')
-rw-r--r--sim/rl78/load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/rl78/load.c b/sim/rl78/load.c
index 85d0fcf..86211d6 100644
--- a/sim/rl78/load.c
+++ b/sim/rl78/load.c
@@ -149,7 +149,7 @@ rl78_load (bfd *prog, host_callback *callbacks, const char * const simname)
continue;
}
- if (bfd_bread (buf, size, prog) != size)
+ if (bfd_read (buf, size, prog) != size)
{
fprintf (stderr, "%s: Failed to read %" PRIx64 " bytes\n",
simname, (uint64_t) size);