From a2126e3c95eca2296a77a7b573ca40c3fbdad7ab Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Sun, 24 Dec 2023 12:00:58 +0100 Subject: [PATCH] strv: make strv_new_api static MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit It is never used outside of strv.c. Signed-off-by: Thomas Weißschuh --- include/strv.h | 1 - lib/strv.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/strv.h b/include/strv.h index 6091fce501..db24ce482b 100644 --- a/include/strv.h +++ b/include/strv.h @@ -30,7 +30,6 @@ int strv_consume_prepend(char ***l, char *value); char **strv_remove(char **l, const char *s); char **strv_new(const char *x, ...); -char **strv_new_ap(const char *x, va_list ap); static inline const char* STRV_IFNOTNULL(const char *x) { return x ? x : (const char *) -1; diff --git a/lib/strv.c b/lib/strv.c index a6a22ee8e3..fd84fe32af 100644 --- a/lib/strv.c +++ b/lib/strv.c @@ -74,7 +74,7 @@ unsigned strv_length(char * const *l) { return n; } -char **strv_new_ap(const char *x, va_list ap) { +static char **strv_new_ap(const char *x, va_list ap) { const char *s; char **a; unsigned n = 0, i = 0; -- 2.47.3