aboutsummaryrefslogtreecommitdiff
path: root/bfd/cache.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/cache.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/cache.c')
-rw-r--r--bfd/cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/cache.c b/bfd/cache.c
index b1dcd5a..5226816 100644
--- a/bfd/cache.c
+++ b/bfd/cache.c
@@ -359,10 +359,10 @@ cache_bwrite (struct bfd *abfd, const void *where, file_ptr nbytes)
return nwrite;
}
-static bfd_boolean
+static int
cache_bclose (struct bfd *abfd)
{
- return bfd_cache_close (abfd);
+ return bfd_cache_close (abfd) - 1;
}
static int