]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
strv: make strv_new_api static
authorThomas Weißschuh <thomas@t-8ch.de>
Sun, 24 Dec 2023 11:00:58 +0000 (12:00 +0100)
committerThomas Weißschuh <thomas@t-8ch.de>
Sun, 31 Dec 2023 12:04:23 +0000 (13:04 +0100)
It is never used outside of strv.c.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
include/strv.h
lib/strv.c

index 6091fce5014993cb0aefd64ed13ba57ac21e7635..db24ce482b176638252e4289a5fc9c450a5fa9bf 100644 (file)
@@ -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;
index a6a22ee8e3f299fff3bf3e2553a38546fbe2552d..fd84fe32af682ef4dbc93e487080cb3799a366aa 100644 (file)
@@ -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;