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:
Barnabás Pőcze 2026-02-19 20:56:36 +01:00 committed by Sam James
parent 4c2692342e
commit c3d7373cf9
No known key found for this signature in database
GPG key ID: 738409F520DF9190
3 changed files with 5 additions and 8 deletions

View file

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