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/cisco-core.c | |
parent | 601b73d5003ef804b49dfe42afd0fba0952218de (diff) | |
download | gdb-40b35c78b62eec2ab41219906a7ea0c0be323499.zip gdb-40b35c78b62eec2ab41219906a7ea0c0be323499.tar.gz gdb-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/cisco-core.c')
-rw-r--r-- | bfd/cisco-core.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bfd/cisco-core.c b/bfd/cisco-core.c index e43982b..b733d14 100644 --- a/bfd/cisco-core.c +++ b/bfd/cisco-core.c @@ -286,19 +286,19 @@ cisco_core_file_validate (bfd *abfd, int crash_info_loc) return NULL; } -static const bfd_target * +static bfd_cleanup cisco_core_file_p (bfd *abfd) { int *crash_info_locp; - const bfd_target *target = NULL; + bfd_cleanup cleanup = NULL; for (crash_info_locp = crash_info_locs; - *crash_info_locp != -1 && target == NULL; + *crash_info_locp != -1 && cleanup == NULL; crash_info_locp++) { - target = cisco_core_file_validate (abfd, *crash_info_locp); + cleanup = cisco_core_file_validate (abfd, *crash_info_locp); } - return (target); + return cleanup; } static char * |