diff --git a/src/basic/strv.c b/src/basic/strv.c index a4ddaa5e78..6a2ff09cbd 100644 --- a/src/basic/strv.c +++ b/src/basic/strv.c @@ -861,7 +861,7 @@ int strv_compare(char * const *a, char * const *b) { return 0; } -bool strv_equal_ignore_order(char **a, char **b) { +bool strv_equal_ignore_order(char * const *a, char * const *b) { /* Just like strv_equal(), but doesn't care about the order of elements or about redundant entries * (i.e. it's even ok if the number of entries in the array differ, as long as the difference just diff --git a/src/basic/strv.h b/src/basic/strv.h index 71aae2b20a..0ca90087b4 100644 --- a/src/basic/strv.h +++ b/src/basic/strv.h @@ -96,7 +96,7 @@ static inline bool strv_equal(char * const *a, char * const *b) { return strv_compare(a, b) == 0; } -bool strv_equal_ignore_order(char **a, char **b); +bool strv_equal_ignore_order(char * const *a, char * const *b); char** strv_new_internal(const char *x, ...) _sentinel_; char** strv_new_ap(const char *x, va_list ap);