lib/: Use multi-line macro definitions
This reduces the complexity of those nested parentheses. Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
committed by
Serge Hallyn
parent
3049bef9c3
commit
5111e5ed1b
+4
-1
@@ -13,7 +13,10 @@
|
||||
#include "attr.h"
|
||||
|
||||
|
||||
#define MALLOC(n, type) ((type *) mallocarray(n, sizeof(type)))
|
||||
#define MALLOC(n, type) \
|
||||
( \
|
||||
(type *) mallocarray(n, sizeof(type)) \
|
||||
)
|
||||
|
||||
|
||||
ATTR_MALLOC(free)
|
||||
|
||||
Reference in New Issue
Block a user