aboutsummaryrefslogtreecommitdiff
path: root/binutils/arsup.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/arsup.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/arsup.c')
-rw-r--r--binutils/arsup.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/binutils/arsup.c b/binutils/arsup.c
index 9982484..5cf34e2 100644
--- a/binutils/arsup.c
+++ b/binutils/arsup.c
@@ -74,7 +74,7 @@ map_over_list (bfd *arch, void (*function) (bfd *, bfd *), struct list *list)
want to hack multiple references. */
for (ptr = list; ptr; ptr = ptr->next)
{
- bfd_boolean found = FALSE;
+ bool found = false;
bfd *prev = arch;
for (head = arch->archive_next; head; head = head->archive_next)
@@ -82,7 +82,7 @@ map_over_list (bfd *arch, void (*function) (bfd *, bfd *), struct list *list)
if (bfd_get_filename (head) != NULL
&& FILENAME_CMP (ptr->name, bfd_get_filename (head)) == 0)
{
- found = TRUE;
+ found = true;
function (head, prev);
}
prev = head;
@@ -98,7 +98,7 @@ map_over_list (bfd *arch, void (*function) (bfd *, bfd *), struct list *list)
static void
ar_directory_doer (bfd *abfd, bfd *ignore ATTRIBUTE_UNUSED)
{
- print_arelt_descr(outfile, abfd, verbose, FALSE);
+ print_arelt_descr(outfile, abfd, verbose, false);
}
void
@@ -364,7 +364,7 @@ ar_save (void)
}
}
- smart_rename (temp_name, real_name, temp_fd, NULL, FALSE);
+ smart_rename (temp_name, real_name, temp_fd, NULL, false);
obfd = 0;
free (temp_name);
free (real_name);