mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-18 08:56:45 -05:00
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:
parent
08002f0497
commit
b832a94f5d
2 changed files with 2 additions and 2 deletions
|
|
@ -162,7 +162,7 @@ char **pw_strv_parse(const char *val, size_t len, int max_tokens, int *n_tokens)
|
||||||
* \since 0.3.84
|
* \since 0.3.84
|
||||||
*/
|
*/
|
||||||
SPA_EXPORT
|
SPA_EXPORT
|
||||||
int pw_strv_find(char **a, char *b)
|
int pw_strv_find(char **a, const char *b)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
if (a == NULL || b == NULL)
|
if (a == NULL || b == NULL)
|
||||||
|
|
|
||||||
|
|
@ -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);
|
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);
|
int pw_strv_find_common(char **a, char **b);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue