From 12aa29b57632c2b4766d99b99641962c04f82697 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Wed, 16 Oct 2024 20:22:31 +0200 Subject: [PATCH] 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 --- lib/alloc/realloc.h | 4 ++-- lib/alloc/reallocf.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/alloc/realloc.h b/lib/alloc/realloc.h index 5ed907889..fd31ab89e 100644 --- a/lib/alloc/realloc.h +++ b/lib/alloc/realloc.h @@ -11,9 +11,9 @@ #include -#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))) \ ) diff --git a/lib/alloc/reallocf.h b/lib/alloc/reallocf.h index 7b0f36a84..5854330aa 100644 --- a/lib/alloc/reallocf.h +++ b/lib/alloc/reallocf.h @@ -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))) \ ) -- 2.47.2