From a65be7d59b6beeffd1447ae662823e926ee1a45a Mon Sep 17 00:00:00 2001 From: Adam Sampson Date: Sat, 4 Oct 2025 22:15:01 +0100 Subject: [PATCH] bytesex.h: fix typo in le32toh function name This fixes the build on 32-bit/64-bit ARM. Signed-off-by: Adam Sampson --- include/bytesex.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/bytesex.h b/include/bytesex.h index 0c6556b9..7ba3c5b8 100644 --- a/include/bytesex.h +++ b/include/bytesex.h @@ -215,7 +215,7 @@ struct unaligned32 { } __attribute__((packed)); static inline uint32_t getu32(const void *p) { - return l32toh(((const struct unaligned32 *)p)->v); + return le32toh(((const struct unaligned32 *)p)->v); } static inline uint32_t setu32(void *p, uint32_t v) { @@ -253,7 +253,7 @@ static inline uint16_t setu16(void *p, uint16_t v) static inline uint32_t getu32(const void *p) { const uint32_t _unaligned *pp = p; - return l32toh(*pp); + return le32toh(*pp); } static inline uint32_t setu32(void *p, uint32_t v) {