aboutsummaryrefslogtreecommitdiff
path: root/bfd/opncls.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-11-07 00:55:04 +0000
committerH.J. Lu <hjl.tools@gmail.com>2012-11-07 00:55:04 +0000
commit9053b70efaad3b15547d74badd23cc9a32330cdd (patch)
treef012a5fd2850ea313d006ac8f61f81906b95b3b3 /bfd/opncls.c
parented86b3506230d2b4e4d1da1948d047914eefa16b (diff)
downloadgdb-9053b70efaad3b15547d74badd23cc9a32330cdd.zip
gdb-9053b70efaad3b15547d74badd23cc9a32330cdd.tar.gz
gdb-9053b70efaad3b15547d74badd23cc9a32330cdd.tar.bz2
Change return type of bclose to bfd_boolean
PR binutils/14813 * bfdio.c (bfd_iovec): Change return type of bclose to bfd_boolean. (memory_bclose): Change return type to bfd_boolean. * cache.c (cache_bclose): Likewise. * opncls.c (opncls_bclose): Likewise. Return TRUE on success. * vms-lib.c (vms_lib_bclose): Likewise. Return TRUE. * libbfd.h: Regenerated.
Diffstat (limited to 'bfd/opncls.c')
-rw-r--r--bfd/opncls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/opncls.c b/bfd/opncls.c
index 8fd9ac8..728b2b0 100644
--- a/bfd/opncls.c
+++ b/bfd/opncls.c
@@ -508,7 +508,7 @@ opncls_bwrite (struct bfd *abfd ATTRIBUTE_UNUSED,
return -1;
}
-static int
+static bfd_boolean
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;
+ return status == 0;
}
static int