strv: constify arguments for strv_equal_ignore_order()

Follow-up for 5072f4268b.
This commit is contained in:
Yu Watanabe
2025-04-13 04:59:26 +09:00
parent 24655047b0
commit 3f23b37c5a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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);