diff options
Diffstat (limited to 'bfd/elf-strtab.c')
-rw-r--r-- | bfd/elf-strtab.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bfd/elf-strtab.c b/bfd/elf-strtab.c index a3cb4ef..39eab6b 100644 --- a/bfd/elf-strtab.c +++ b/bfd/elf-strtab.c @@ -141,7 +141,7 @@ _bfd_elf_strtab_free (struct elf_strtab_hash *tab) size_t _bfd_elf_strtab_add (struct elf_strtab_hash *tab, const char *str, - bfd_boolean copy) + bool copy) { register struct elf_strtab_hash_entry *entry; @@ -152,7 +152,7 @@ _bfd_elf_strtab_add (struct elf_strtab_hash *tab, BFD_ASSERT (tab->sec_size == 0); entry = (struct elf_strtab_hash_entry *) - bfd_hash_lookup (&tab->table, str, TRUE, copy); + bfd_hash_lookup (&tab->table, str, true, copy); if (entry == NULL) return (size_t) -1; @@ -309,14 +309,14 @@ _bfd_elf_strtab_str (struct elf_strtab_hash *tab, size_t idx, return tab->array[idx]->root.string; } -bfd_boolean +bool _bfd_elf_strtab_emit (register bfd *abfd, struct elf_strtab_hash *tab) { bfd_size_type off = 1; size_t i; if (bfd_bwrite ("", 1, abfd) != 1) - return FALSE; + return false; for (i = 1; i < tab->size; ++i) { @@ -330,13 +330,13 @@ _bfd_elf_strtab_emit (register bfd *abfd, struct elf_strtab_hash *tab) str = tab->array[i]->root.string; if (bfd_bwrite (str, len, abfd) != len) - return FALSE; + return false; off += len; } BFD_ASSERT (off == tab->sec_size); - return TRUE; + return true; } /* Compare two elf_strtab_hash_entry structures. Called via qsort. |