mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-26 07:58:03 -04: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.
(cherry picked from commit e46bfe67b6)
This commit is contained in:
parent
4c2692342e
commit
c3d7373cf9
3 changed files with 5 additions and 8 deletions
|
|
@ -5325,7 +5325,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