aboutsummaryrefslogtreecommitdiff
path: root/binutils/bfdtest2.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2021-03-31 10:39:37 +1030
committerAlan Modra <amodra@gmail.com>2021-03-31 10:49:23 +1030
commit015dc7e1f8a971692a910e6cfc64faf9216e75c3 (patch)
tree53f0eb6489d86f4a6b734115c79c4e131af5416c /binutils/bfdtest2.c
parent78933a4ad9ae9c2e274d41e6b3036ea582c47810 (diff)
downloadgdb-015dc7e1f8a971692a910e6cfc64faf9216e75c3.zip
gdb-015dc7e1f8a971692a910e6cfc64faf9216e75c3.tar.gz
gdb-015dc7e1f8a971692a910e6cfc64faf9216e75c3.tar.bz2
Use bool in binutils
* sysdep.h (POISON_BFD_BOOLEAN): Define. * addr2line.c, * ar.c, * arsup.c, * bfdtest2.c, * binemul.c, * binemul.h, * bucomm.c, * bucomm.h, * budbg.h, * coffgrok.c, * debug.c, * debug.h, * dlltool.c, * dwarf.c, * dwarf.h, * elfedit.c, * emul_aix.c, * mclex.c, * nm.c, * objcopy.c, * objdump.c, * od-macho.c, * prdbg.c, * rdcoff.c, * rddbg.c, * readelf.c, * rename.c, * stabs.c, * strings.c, * windint.h, * windmc.c, * windmc.h, * windres.c, * winduni.c, * wrstabs.c: Replace bfd_boolean with bool, FALSE with false, and TRUE with true throughout.
Diffstat (limited to 'binutils/bfdtest2.c')
-rw-r--r--binutils/bfdtest2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/binutils/bfdtest2.c b/binutils/bfdtest2.c
index 48fcb51..b33fc71 100644
--- a/binutils/bfdtest2.c
+++ b/binutils/bfdtest2.c
@@ -53,13 +53,13 @@ iovec_stat (struct bfd *abfd ATTRIBUTE_UNUSED,
return fstat (fileno ((FILE*) stream), sb);
}
-static bfd_boolean
+static bool
check_format_any (struct bfd *abfd, bfd_format format)
{
char** targets = NULL;
if (bfd_check_format_matches (abfd, format, &targets))
- return TRUE;
+ return true;
if (targets)
{
@@ -68,7 +68,7 @@ check_format_any (struct bfd *abfd, bfd_format format)
return bfd_check_format (abfd, format);
}
- return FALSE;
+ return false;
}
int