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). --- sim/rl78/load.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sim/rl78') 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); -- cgit v1.1