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:
Barnabás Pőcze 2026-02-19 20:56:36 +01:00
parent d7c3e8c2bc
commit e46bfe67b6
3 changed files with 5 additions and 8 deletions

View file

@ -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)