diff options
author | Alan Modra <amodra@gmail.com> | 2020-03-03 00:08:42 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-03-03 00:12:44 +1030 |
commit | 40b35c78b62eec2ab41219906a7ea0c0be323499 (patch) | |
tree | 396142410fbe8e426380c6b7c90075f5c8a3ddbb /bfd/sco5-core.c | |
parent | 601b73d5003ef804b49dfe42afd0fba0952218de (diff) | |
download | binutils-40b35c78b62eec2ab41219906a7ea0c0be323499.zip binutils-40b35c78b62eec2ab41219906a7ea0c0be323499.tar.gz binutils-40b35c78b62eec2ab41219906a7ea0c0be323499.tar.bz2 |
Re: bfd_cleanup for object_p
I hate files that you can't compile.
* cisco-core.c (cisco_core_file_p): Return bfd_cleanup.
* hpux-core.c (hpux_core_core_file_p): Update prototype.
* sco5-core.c (sco5_core_file_p): Return bfd_cleanup.
(core_sco5_vec): Correct initialisers.
Diffstat (limited to 'bfd/sco5-core.c')
-rw-r--r-- | bfd/sco5-core.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/bfd/sco5-core.c b/bfd/sco5-core.c index 84dbf4f..71e264d 100644 --- a/bfd/sco5-core.c +++ b/bfd/sco5-core.c @@ -101,7 +101,7 @@ read_uarea (bfd *abfd, int filepos) return &rawptr->u; } -const bfd_cleanup +bfd_cleanup sco5_core_file_p (bfd *abfd) { int coffset_siz, val, nsecs, cheadoffs; @@ -172,7 +172,7 @@ sco5_core_file_p (bfd *abfd) (file_ptr) coffsets.u_stack)) goto fail; - return abfd->xvec; /* Done for version 1 */ + return _bfd_no_cleanup; /* Done for version 1 */ } /* Immediately before coreoffsets region is a long with offset in core @@ -372,12 +372,16 @@ const bfd_target core_sco5_vec = sco5_core_file_p /* a core file */ }, { /* bfd_set_format */ - _bfd_bool_bfd_false_error, bfd_false, - _bfd_bool_bfd_false_error, bfd_false + _bfd_bool_bfd_false_error, + _bfd_bool_bfd_false_error, + _bfd_bool_bfd_false_error, + _bfd_bool_bfd_false_error }, { /* bfd_write_contents */ - _bfd_bool_bfd_false_error, bfd_false, - _bfd_bool_bfd_false_error, bfd_false + _bfd_bool_bfd_false_error, + _bfd_bool_bfd_false_error, + _bfd_bool_bfd_false_error, + _bfd_bool_bfd_false_error }, BFD_JUMP_TABLE_GENERIC (_bfd_generic), |