mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 18:10:46 +00:00
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).
This commit is contained in:
@@ -545,7 +545,7 @@ sec_merge_emit (bfd *abfd, struct sec_merge_sec_info *secinfo,
|
||||
memcpy (contents + offset, pad, len);
|
||||
offset += len;
|
||||
}
|
||||
else if (bfd_bwrite (pad, len, abfd) != len)
|
||||
else if (bfd_write (pad, len, abfd) != len)
|
||||
goto err;
|
||||
off += len;
|
||||
}
|
||||
@@ -558,7 +558,7 @@ sec_merge_emit (bfd *abfd, struct sec_merge_sec_info *secinfo,
|
||||
memcpy (contents + offset, str, len);
|
||||
offset += len;
|
||||
}
|
||||
else if (bfd_bwrite (str, len, abfd) != len)
|
||||
else if (bfd_write (str, len, abfd) != len)
|
||||
goto err;
|
||||
|
||||
off += len;
|
||||
@@ -572,7 +572,7 @@ sec_merge_emit (bfd *abfd, struct sec_merge_sec_info *secinfo,
|
||||
BFD_ASSERT (off <= pad_len);
|
||||
if (contents)
|
||||
memcpy (contents + offset, pad, off);
|
||||
else if (bfd_bwrite (pad, off, abfd) != off)
|
||||
else if (bfd_write (pad, off, abfd) != off)
|
||||
goto err;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user