From: Yu Watanabe Date: Fri, 11 Apr 2025 00:57:07 +0000 (+0900) Subject: strv: constify arguments for strv_equal_ignore_order() X-Git-Tag: v258-rc1~829^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3f23b37c5a4ba86d9ecb446dc8030bb404fb8da7;p=thirdparty%2Fsystemd.git strv: constify arguments for strv_equal_ignore_order() Follow-up for 5072f4268b89a71e47e59c434da0222f722c7f0e. --- diff --git a/src/basic/strv.c b/src/basic/strv.c index a4ddaa5e78f..6a2ff09cbdc 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 71aae2b20a8..0ca90087b42 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);