aboutsummaryrefslogtreecommitdiff
path: root/bfd/bfd-in2.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-04-29 13:00:46 +0930
committerAlan Modra <amodra@gmail.com>2023-05-03 14:41:28 +0930
commitf68912e8310e28ffdfa8a16e0f3db4bcb5b2f620 (patch)
tree13a84ce0445ce27328978b0303321081db1301d5 /bfd/bfd-in2.h
parentdf2fc6fbfd8f8188b06a6dd3c8987e8c3135ec58 (diff)
downloadgdb-f68912e8310e28ffdfa8a16e0f3db4bcb5b2f620.zip
gdb-f68912e8310e28ffdfa8a16e0f3db4bcb5b2f620.tar.gz
gdb-f68912e8310e28ffdfa8a16e0f3db4bcb5b2f620.tar.bz2
libbfc.c: Use stdint types for unsigned char and unsigned long
* libbfd.c (bfd_put_8): Use bfd_byte rather than unsigned char. (bfd_get_8, bfd_get_signed_8): Likewise. (_bfd_read_unsigned_leb128, _bfd_safe_read_leb128): Likewise. (_bfd_read_signed_leb128): Likewise. (bfd_getb24, bfd_getl24): Replace unsigned long with uint32_t. (bfd_getb32, bfd_getl32): Likewise. (bfd_getb_signed_32, bfd_getl_signed_32): Likewise.
Diffstat (limited to 'bfd/bfd-in2.h')
-rw-r--r--bfd/bfd-in2.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index d695402..c7bcd5f 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -544,13 +544,13 @@ const char *bfd_set_filename (bfd *abfd, const char *filename);
/* Byte swapping macros for user section data. */
#define bfd_put_8(abfd, val, ptr) \
- ((void) (*((unsigned char *) (ptr)) = (val) & 0xff))
+ ((void) (*((bfd_byte *) (ptr)) = (val) & 0xff))
#define bfd_put_signed_8 \
bfd_put_8
#define bfd_get_8(abfd, ptr) \
- ((bfd_vma) *(const unsigned char *) (ptr) & 0xff)
+ ((bfd_vma) *(const bfd_byte *) (ptr) & 0xff)
#define bfd_get_signed_8(abfd, ptr) \
- ((((bfd_signed_vma) *(const unsigned char *) (ptr) & 0xff) ^ 0x80) - 0x80)
+ ((((bfd_signed_vma) *(const bfd_byte *) (ptr) & 0xff) ^ 0x80) - 0x80)
#define bfd_put_16(abfd, val, ptr) \
BFD_SEND (abfd, bfd_putx16, ((val),(ptr)))