aboutsummaryrefslogtreecommitdiff
path: root/bfd/opncls.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2013-01-14 13:14:08 +0000
committerAlan Modra <amodra@gmail.com>2013-01-14 13:14:08 +0000
commit405bf443e52b6986413e7b02cb783e4ae92b0dda (patch)
tree87d44f7a0c74676bc6ccccee729cf23956a6151f /bfd/opncls.c
parent130b4629e4d842da9d371f4b28397cfc591db035 (diff)
downloadgdb-405bf443e52b6986413e7b02cb783e4ae92b0dda.zip
gdb-405bf443e52b6986413e7b02cb783e4ae92b0dda.tar.gz
gdb-405bf443e52b6986413e7b02cb783e4ae92b0dda.tar.bz2
PR binutils/14813
* bfdio.c (struct bfd_iovec <bclose>): Revert 2012-11-06. (memory_bclose): Likewise. Return 0 on success. * cache.c (cache_bclose): Likewise. * opncls.c (opncls_bclose, bfd_close): Likewise. * vms-lib.c (vms_lib_bclose): Likewise. * libbfd.h: Regenerate.
Diffstat (limited to 'bfd/opncls.c')
-rw-r--r--bfd/opncls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/opncls.c b/bfd/opncls.c
index cbdb46e..c18d08a 100644
--- a/bfd/opncls.c
+++ b/bfd/opncls.c
@@ -508,7 +508,7 @@ opncls_bwrite (struct bfd *abfd ATTRIBUTE_UNUSED,
return -1;
}
-static bfd_boolean
+static int
opncls_bclose (struct bfd *abfd)
{
struct opncls *vec = (struct opncls *) abfd->iostream;
@@ -518,7 +518,7 @@ opncls_bclose (struct bfd *abfd)
if (vec->close != NULL)
status = (vec->close) (abfd, vec->stream);
abfd->iostream = NULL;
- return status == 0;
+ return status;
}
static int
@@ -723,7 +723,7 @@ bfd_close (bfd *abfd)
if (! BFD_SEND (abfd, _close_and_cleanup, (abfd)))
return FALSE;
- ret = abfd->iovec->bclose (abfd);
+ ret = abfd->iovec->bclose (abfd) == 0;
if (ret)
_maybe_make_executable (abfd);