aboutsummaryrefslogtreecommitdiff
path: root/bfd/bfdio.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/bfdio.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/bfdio.c')
-rw-r--r--bfd/bfdio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/bfdio.c b/bfd/bfdio.c
index 43a7684..a80cd4f 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);
-. int (*bclose) (struct bfd *abfd);
+. bfd_boolean (*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 int
+static bfd_boolean
memory_bclose (struct bfd *abfd)
{
struct bfd_in_memory *bim = (struct bfd_in_memory *) abfd->iostream;