aboutsummaryrefslogtreecommitdiff
path: root/bfd/bfdio.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/bfdio.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/bfdio.c')
-rw-r--r--bfd/bfdio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/bfdio.c b/bfd/bfdio.c
index a80cd4f..be05581 100644
--- a/bfd/bfdio.c
+++ b/bfd/bfdio.c
@@ -154,7 +154,7 @@ DESCRIPTION
. {* For the following, on successful completion a value of 0 is returned.
. Otherwise, a value of -1 is returned (and <<bfd_error>> is set). *}
. int (*bseek) (struct bfd *abfd, file_ptr offset, int whence);
-. bfd_boolean (*bclose) (struct bfd *abfd);
+. int (*bclose) (struct bfd *abfd);
. int (*bflush) (struct bfd *abfd);
. int (*bstat) (struct bfd *abfd, struct stat *sb);
. {* Mmap a part of the files. ADDR, LEN, PROT, FLAGS and OFFSET are the usual
@@ -576,7 +576,7 @@ memory_bseek (bfd *abfd, file_ptr position, int direction)
return 0;
}
-static bfd_boolean
+static int
memory_bclose (struct bfd *abfd)
{
struct bfd_in_memory *bim = (struct bfd_in_memory *) abfd->iostream;
@@ -586,7 +586,7 @@ memory_bclose (struct bfd *abfd)
free (bim);
abfd->iostream = NULL;
- return TRUE;
+ return 0;
}
static int