summaryrefslogtreecommitdiff
path: root/bfd/cache.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2013-01-14 13:14:06 +0000
committerAlan Modra <amodra@bigpond.net.au>2013-01-14 13:14:06 +0000
commita8869f6c09c81263112ba80ef3f91a3bbe2eb91f (patch)
tree2f25e444b3901f77027b165a4e79cac076c6b33c /bfd/cache.c
parent33e0a2a83803730c349902ca99f1050b6e737ba2 (diff)
downloadbinutils-redhat-a8869f6c09c81263112ba80ef3f91a3bbe2eb91f.tar.gz
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 b1dcd5a745..52268162c2 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