Made sure that every call to bfd_read, bfd_write, and bfd_seek
authorIan Lance Taylor <ian@airs.com>
Mon, 4 Apr 1994 22:42:45 +0000 (22:42 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 4 Apr 1994 22:42:45 +0000 (22:42 +0000)
commit5f322b5eb0724018003ba9d80545b96a47d6e765
treed79e61bea2af51bffddbe12431d04c990dfd760b
parent2baa7d54a6a3a857fce2df0c4f4cd63715f84c29
Made sure that every call to bfd_read, bfd_write, and bfd_seek
checks the return value and handled bfd_error correctly.  These
changes are not itemised.  Also:
* oasys.c (oasys_read_record): Change return type to boolean.
(oasys_slurp_symbol_table: Check oasys_read_record return value.
(oasys_object_p, oasys_slurp_section_data): Likewise.
(oasys_write_record): Change return type to boolean.
(oasys_write_syms): Likewise.  Also, check oasys_write_record
return value.
(oasys_write_sections): Check oasys_write_record return value.
(oasys_write_header): Change return type to boolean.  Check
oasys_write_record return value.
(oasys_write_end, oasys_write_data): Likewise.
(oasys_write_object_contents): Check return values of
oasys_write_header, oasys_write_syms, oasys_write_data, and
oasys_write_end.
bfd/oasys.c