From ee365c6d442dbcffd05a64e6a8132f2ecbda79f6 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 22 Jun 2025 19:32:36 -0400 Subject: kernel: Fix base-16 style in endian.h Signed-off-by: Ian Moffett --- sys/include/sys/endian.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/include/sys/endian.h b/sys/include/sys/endian.h index baf4f8a..5cbc94a 100644 --- a/sys/include/sys/endian.h +++ b/sys/include/sys/endian.h @@ -39,7 +39,7 @@ __always_inline static inline uint16_t __swap16(uint16_t x) { - return ((x << 8) & 0XFF00) | ((x >> 8) & 0X00FF); + return ((x << 8) & 0xFF00) | ((x >> 8) & 0x00FF); } __always_inline static inline uint32_t @@ -48,7 +48,7 @@ __swap32(uint32_t x) return ((x << 24) & 0xFF000000) | ((x << 8) & 0x00FF0000) | ((x >> 8) & 0x0000FF00) | - ((x >> 24) & 0X000000FF); + ((x >> 24) & 0x000000FF); } #endif /* !_SYS_ENDIAN_H_ */ -- cgit v1.2.3