pipewire: utils: make pw_strv_find() take a const char *

There is no reason to take just a `char *` as the string only ever read.
This commit is contained in:
Barnabás Pőcze 2023-11-05 04:21:47 +01:00
parent 08002f0497
commit b832a94f5d
2 changed files with 2 additions and 2 deletions

View file

@ -162,7 +162,7 @@ char **pw_strv_parse(const char *val, size_t len, int max_tokens, int *n_tokens)
* \since 0.3.84
*/
SPA_EXPORT
int pw_strv_find(char **a, char *b)
int pw_strv_find(char **a, const char *b)
{
int i;
if (a == NULL || b == NULL)

View file

@ -48,7 +48,7 @@ pw_split_ip(char *str, const char *delimiter, int max_tokens, char *tokens[]);
char **pw_strv_parse(const char *val, size_t len, int max_tokens, int *n_tokens);
int pw_strv_find(char **a, char *b);
int pw_strv_find(char **a, const char *b);
int pw_strv_find_common(char **a, char **b);