diff options
-rw-r--r-- | libctf/ChangeLog | 4 | ||||
-rw-r--r-- | libctf/swap.h | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/libctf/ChangeLog b/libctf/ChangeLog index 27652b8..ea34bae 100644 --- a/libctf/ChangeLog +++ b/libctf/ChangeLog @@ -1,3 +1,7 @@ +2019-10-16 Simon Marchi <simon.marchi@polymtl.ca> + + * swap.h (bswap_16, bswap_32, bswap_64): Make static. + 2019-09-30 Nick Alcock <nick.alcock@oracle.com> * ctf-open.c (ctf_bufopen_internal): Fix tabdamage. diff --git a/libctf/swap.h b/libctf/swap.h index e75e8d4..ac62ac7 100644 --- a/libctf/swap.h +++ b/libctf/swap.h @@ -28,13 +28,13 @@ #else /* Provide our own versions of the byteswap functions. */ -inline uint16_t +static inline uint16_t bswap_16 (uint16_t v) { return ((v >> 8) & 0xff) | ((v & 0xff) << 8); } -inline uint32_t +static inline uint32_t bswap_32 (uint32_t v) { return ( ((v & 0xff000000) >> 24) @@ -49,7 +49,7 @@ bswap_identity_64 (uint64_t v) return v; } -inline uint64_t +static inline uint64_t bswap_64 (uint64_t v) { return ( ((v & 0xff00000000000000ULL) >> 56) |