summaryrefslogtreecommitdiff
path: root/src/basic/strv.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-01-15 13:59:11 +0100
committerGitHub <noreply@github.com>2020-01-15 13:59:11 +0100
commit98f44b97bb49673b32a3bc824067950c23321840 (patch)
treed4a0b1dc247156fa35387730bca9055535d14797 /src/basic/strv.h
parenta50414fce54d824785eea075b1fc9e5c50da4730 (diff)
parentbbaba5748d6539900990ad97236b8251e8fc797a (diff)
downloadsystemd-98f44b97bb49673b32a3bc824067950c23321840.tar.gz
Merge pull request #14562 from yuwata/table-strv
introduce TABLE_STRV and use it in networkctl and resolvectl
Diffstat (limited to 'src/basic/strv.h')
-rw-r--r--src/basic/strv.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/basic/strv.h b/src/basic/strv.h
index 16faf9e7f2..85a49ab5c3 100644
--- a/src/basic/strv.h
+++ b/src/basic/strv.h
@@ -51,7 +51,10 @@ char **strv_remove(char **l, const char *s);
char **strv_uniq(char **l);
bool strv_is_uniq(char * const *l);
-bool strv_equal(char * const *a, char * const *b);
+int strv_compare(char * const *a, char * const *b);
+static inline bool strv_equal(char * const *a, char * const *b) {
+ return strv_compare(a, b) == 0;
+}
#define strv_contains(l, s) (!!strv_find((l), (s)))