mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-07 04:34:07 -05:00
treewide: fix some -Wdiscarded-qualifiers
Newer glibc versions have made certain `str*()` functions into macros that ensure that the const-ness of the argument is propagated to the return type.
This commit is contained in:
parent
d7c3e8c2bc
commit
e46bfe67b6
3 changed files with 5 additions and 8 deletions
|
|
@ -5318,7 +5318,7 @@ int jack_set_freewheel(jack_client_t* client, int onoff)
|
|||
pw_thread_loop_lock(c->context.loop);
|
||||
str = pw_properties_get(c->props, PW_KEY_NODE_GROUP);
|
||||
if (str != NULL) {
|
||||
char *p = strstr(str, ",pipewire.freewheel");
|
||||
const char *p = strstr(str, ",pipewire.freewheel");
|
||||
if (p == NULL)
|
||||
p = strstr(str, "pipewire.freewheel");
|
||||
if (p == NULL && onoff)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue