]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
lib/alloc/realloc*.h: Rename macro parameter
authorAlejandro Colomar <alx@kernel.org>
Wed, 16 Oct 2024 18:22:31 +0000 (20:22 +0200)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Tue, 22 Oct 2024 08:53:06 +0000 (10:53 +0200)
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>
lib/alloc/realloc.h
lib/alloc/reallocf.h

index 5ed90788995abde68a56542a9612f4ca932d0540..fd31ab89e0c8dc3b2e72b5ddb545f5e81c11eba4 100644 (file)
@@ -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)))       \
 )
 
 
index 7b0f36a84e1731e5e1fa24f68792916664ef51d1..5854330aae9dbaf2481d6ef87fe35652c8ae536f 100644 (file)
@@ -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)))      \
 )