hopefully final fixes from code-format disaster :-(
MODIFY
include/alloc-inl.h
include/alloc-inl.h
@@ -237,6 +237,7 @@ static inline u8 *DFL_ck_memdup_str(u8 *mem, u32 size) {
({ \
\
\
+ \
u8 *_tmp; \
s32 _len = snprintf(NULL, 0, _str); \
if (_len < 0) FATAL("Whoa, snprintf() fails?!"); \
@@ -315,6 +316,7 @@ while (0)
({ \
\
\
+ \
typeof(_p) _tmp = (_p); \
CHECK_PTR(_tmp); \
_tmp;

MODIFY
libdislocator/libdislocator.so.c
libdislocator/libdislocator.so.c
do { \
\
ssize_t rd = syscall(__NR_getrandom, p, l, 0); \
- if (rd != l) DEBUGF("getrandom failed");
-
-}
-
-while (0)
+ if (rd != l) DEBUGF("getrandom failed"); \
+ \
+ } while (0)
#else
#include <time.h>
@@ -60,11 +58,9 @@ while (0)
u32 i; \
u8 *ptr = (u8 *)p; \
for (i = 0; i < l; i++) \
- ptr[i] = rand() % INT_MAX;
-
-}
-
-while (0)
+ ptr[i] = rand() % INT_MAX; \
+ \
+ } while (0)
#endif
#endif

hopefully final fixes from code-format disaster :-(