Hi, here is a patch for the internal.h header which fixes the min/max macro. In current form its expansion might lead to wrong behaviour in certain contexts. Matthias
Index: 1.0.0.rc13/lib/internal.h =================================================================== --- 1.0.0.rc13.orig/lib/internal.h +++ 1.0.0.rc13/lib/internal.h @@ -49,8 +49,8 @@ #define u_int64_t uint64_t #endif -#define min(a, b) a < b ? a : b -#define max(a, b) a > b ? a : b +#define min(a, b) ((a) < (b) ? (a) : (b)) +#define max(a, b) ((a) > (b) ? (a) : (b)) #define ARRAY_SIZE(a) (sizeof(a) / sizeof(*a)) #define ARRAY_END(a) (a + ARRAY_SIZE(a))
_______________________________________________ Ataraid-list mailing list Ataraid-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/ataraid-list