lib/alloc/realloc*.h: Rename macro parameter
This is in preparation for the following commit, which will need this shorter parameter name to avoid breaking long lines. Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
committed by
Iker Pedrosa
parent
30ab822cf3
commit
12aa29b576
+2
-2
@@ -11,9 +11,9 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
#define REALLOC(ptr, n, type) \
|
||||
#define REALLOC(p, n, type) \
|
||||
( \
|
||||
_Generic(ptr, type *: (type *) reallocarray(ptr, n, sizeof(type))) \
|
||||
_Generic(p, type *: (type *) reallocarray(p, n, sizeof(type))) \
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -14,9 +14,9 @@
|
||||
#include "attr.h"
|
||||
|
||||
|
||||
#define REALLOCF(ptr, n, type) \
|
||||
#define REALLOCF(p, n, type) \
|
||||
( \
|
||||
_Generic(ptr, type *: (type *) reallocarrayf(ptr, n, sizeof(type))) \
|
||||
_Generic(p, type *: (type *) reallocarrayf(p, n, sizeof(type))) \
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user