summaryrefslogtreecommitdiff
path: root/src/shared/strv.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/strv.h')
-rw-r--r--src/shared/strv.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/shared/strv.h b/src/shared/strv.h
index 623f10216d..da9fae6edb 100644
--- a/src/shared/strv.h
+++ b/src/shared/strv.h
@@ -30,7 +30,10 @@ char *strv_find(char **l, const char *name);
char *strv_find_prefix(char **l, const char *name);
void strv_free(char **l);
-void strv_freep(char ***l);
+static inline void strv_freep(char ***l) {
+ strv_free(*l);
+}
+
char **strv_copy(char **l) _malloc_;
unsigned strv_length(char **l);