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 /binutils/objcopy.c | |
parent | feddea4b466ce4f2bb2301fd2d4bef56e8d09ccc (diff) | |
download | binutils-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 'binutils/objcopy.c')
-rw-r--r-- | binutils/objcopy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/binutils/objcopy.c b/binutils/objcopy.c index b2b7ab6..2ce1b07 100644 --- a/binutils/objcopy.c +++ b/binutils/objcopy.c @@ -1961,7 +1961,7 @@ copy_unknown_object (bfd *ibfd, bfd *obfd) return false; } - if (bfd_seek (ibfd, (file_ptr) 0, SEEK_SET) != 0) + if (bfd_seek (ibfd, 0, SEEK_SET) != 0) { bfd_nonfatal (bfd_get_archive_filename (ibfd)); return false; @@ -1979,14 +1979,14 @@ copy_unknown_object (bfd *ibfd, bfd *obfd) else tocopy = size; - if (bfd_bread (cbuf, tocopy, ibfd) != tocopy) + if (bfd_read (cbuf, tocopy, ibfd) != tocopy) { bfd_nonfatal_message (NULL, ibfd, NULL, NULL); free (cbuf); return false; } - if (bfd_bwrite (cbuf, tocopy, obfd) != tocopy) + if (bfd_write (cbuf, tocopy, obfd) != tocopy) { bfd_nonfatal_message (NULL, obfd, NULL, NULL); free (cbuf); |