scoutfs-utils: clean up _MAX defines

Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
Zach Brown
2018-04-04 09:15:54 -05:00
committed by Mark Swan
parent 0770cc8c57
commit 65ce5c6ad5
2 changed files with 4 additions and 2 deletions
-2
View File
@@ -34,8 +34,6 @@ typedef u32 __u32;
typedef s32 __s32;
typedef u64 __u64;
#define U16_MAX ((u16)~0)
typedef u16 __sp_biwise __le16;
typedef u16 __sp_biwise __be16;
typedef u32 __sp_biwise __le32;
+4
View File
@@ -61,6 +61,10 @@ do { \
((type *)((void *)(ptr) - offsetof(type, memb)))
#define BITS_PER_LONG (sizeof(long) * 8)
#define U8_MAX ((u8)~0ULL)
#define U16_MAX ((u16)~0ULL)
#define U32_MAX ((u32)~0ULL)
#define U64_MAX ((u64)~0ULL)
/*
* return -1,0,+1 based on the memcmp comparison of the minimum of their