summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/include/sys/endian.h4
1 files 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_ */