diff options
author | Alan Modra <amodra@gmail.com> | 2023-08-07 14:40:35 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-08-09 08:48:09 +0930 |
commit | 226f9f4fadb087875ef98a0a55d614236c6241b3 (patch) | |
tree | e6c63b104143dd86acf739d5633649582668224e /bfd/verilog.c | |
parent | feddea4b466ce4f2bb2301fd2d4bef56e8d09ccc (diff) | |
download | gdb-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/verilog.c')
-rw-r--r-- | bfd/verilog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/verilog.c b/bfd/verilog.c index ef37091..71a6fd6 100644 --- a/bfd/verilog.c +++ b/bfd/verilog.c @@ -200,7 +200,7 @@ verilog_write_address (bfd *abfd, bfd_vma address) *dst++ = '\n'; wrlen = dst - buffer; - return bfd_bwrite ((void *) buffer, wrlen, abfd) == wrlen; + return bfd_write (buffer, wrlen, abfd) == wrlen; } /* Write a record of type, of the supplied number of bytes. The @@ -288,7 +288,7 @@ verilog_write_record (bfd *abfd, *dst++ = '\n'; wrlen = dst - buffer; - return bfd_bwrite ((void *) buffer, wrlen, abfd) == wrlen; + return bfd_write (buffer, wrlen, abfd) == wrlen; } static bool |