aboutsummaryrefslogtreecommitdiff
path: root/bfd/targets.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-05-27 12:37:21 +0930
committerAlan Modra <amodra@gmail.com>2022-05-27 22:08:59 +0930
commit0e3c1eebb22e0ade28b619fb41f42d66ed6fb145 (patch)
tree8a886ac9438d7e9268807c07585eef11a146714d /bfd/targets.c
parentaa9b5dbc0f30855aa23034cbd78a1f2025cb9fa9 (diff)
downloadgdb-0e3c1eebb22e0ade28b619fb41f42d66ed6fb145.zip
gdb-0e3c1eebb22e0ade28b619fb41f42d66ed6fb145.tar.gz
gdb-0e3c1eebb22e0ade28b619fb41f42d66ed6fb145.tar.bz2
Remove use of bfd_uint64_t and similar
Requiring C99 means that uses of bfd_uint64_t can be replaced with uint64_t, and similarly for bfd_int64_t, BFD_HOST_U_64_BIT, and BFD_HOST_64_BIT. This patch does that, removes #ifdef BFD_HOST_* and tidies a few places that print 64-bit values.
Diffstat (limited to 'bfd/targets.c')
-rw-r--r--bfd/targets.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/bfd/targets.c b/bfd/targets.c
index 05dd823..f44b5c6 100644
--- a/bfd/targets.c
+++ b/bfd/targets.c
@@ -226,9 +226,9 @@ DESCRIPTION
. {* Entries for byte swapping for data. These are different from the
. other entry points, since they don't take a BFD as the first argument.
. Certain other handlers could do the same. *}
-. bfd_uint64_t (*bfd_getx64) (const void *);
-. bfd_int64_t (*bfd_getx_signed_64) (const void *);
-. void (*bfd_putx64) (bfd_uint64_t, void *);
+. uint64_t (*bfd_getx64) (const void *);
+. int64_t (*bfd_getx_signed_64) (const void *);
+. void (*bfd_putx64) (uint64_t, void *);
. bfd_vma (*bfd_getx32) (const void *);
. bfd_signed_vma (*bfd_getx_signed_32) (const void *);
. void (*bfd_putx32) (bfd_vma, void *);
@@ -237,9 +237,9 @@ DESCRIPTION
. void (*bfd_putx16) (bfd_vma, void *);
.
. {* Byte swapping for the headers. *}
-. bfd_uint64_t (*bfd_h_getx64) (const void *);
-. bfd_int64_t (*bfd_h_getx_signed_64) (const void *);
-. void (*bfd_h_putx64) (bfd_uint64_t, void *);
+. uint64_t (*bfd_h_getx64) (const void *);
+. int64_t (*bfd_h_getx_signed_64) (const void *);
+. void (*bfd_h_putx64) (uint64_t, void *);
. bfd_vma (*bfd_h_getx32) (const void *);
. bfd_signed_vma (*bfd_h_getx_signed_32) (const void *);
. void (*bfd_h_putx32) (bfd_vma, void *);