From 2769a6f4079a31677b88d2c538104ac42f47bdf3 Mon Sep 17 00:00:00 2001 From: Rudi Heitbaum Date: Fri, 20 Feb 2026 11:31:02 +0000 Subject: [PATCH 1/3] conf: fix discards const from pointer target Since glibc-2.43: For ISO C23, the functions bsearch, memchr, strchr, strpbrk, strrchr, strstr, wcschr, wcspbrk, wcsrchr, wcsstr and wmemchr that return pointers into their input arrays now have definitions as macros that return a pointer to a const-qualified type when the input argument is a pointer to a const-qualified type. https://lists.gnu.org/archive/html/info-gnu/2026-01/msg00005.html Signed-off-by: Rudi Heitbaum --- src/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf.c b/src/conf.c index fb9f0658..b0dd6298 100644 --- a/src/conf.c +++ b/src/conf.c @@ -4443,7 +4443,7 @@ int snd_config_hook_load_for_all_cards(snd_config_t *root, snd_config_t *config, goto __err; } while (1) { - char *s = strchr(driver, '.'); + const char *s = strchr(driver, '.'); if (s == NULL) break; driver = s + 1; From a7ef4c9ea498303ba48a27b2dfd4e3564b57f23d Mon Sep 17 00:00:00 2001 From: Rudi Heitbaum Date: Fri, 20 Feb 2026 11:31:27 +0000 Subject: [PATCH 2/3] ucm: fix discards const from pointer target Since glibc-2.43: For ISO C23, the functions bsearch, memchr, strchr, strpbrk, strrchr, strstr, wcschr, wcspbrk, wcsrchr, wcsstr and wmemchr that return pointers into their input arrays now have definitions as macros that return a pointer to a const-qualified type when the input argument is a pointer to a const-qualified type. https://lists.gnu.org/archive/html/info-gnu/2026-01/msg00005.html Signed-off-by: Rudi Heitbaum --- src/ucm/main.c | 9 ++++++--- src/ucm/ucm_subs.c | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/ucm/main.c b/src/ucm/main.c index 26b0ea20..817f28f8 100644 --- a/src/ucm/main.c +++ b/src/ucm/main.c @@ -2379,7 +2379,8 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr, const char *identifier, const char **list[]) { - char *str, *str1; + char *str; + const char *str1; int err, i; if (uc_mgr == NULL || identifier == NULL) { @@ -2712,7 +2713,8 @@ int snd_use_case_geti(snd_use_case_mgr_t *uc_mgr, const char *identifier, long *value) { - char *str, *str1; + char *str; + const char *str1; int err; pthread_mutex_lock(&uc_mgr->mutex); @@ -3014,7 +3016,8 @@ int snd_use_case_set(snd_use_case_mgr_t *uc_mgr, const char *identifier, const char *value) { - char *str, *str1; + char *str; + const char *str1; int err = 0; snd_trace(UCM, "{API call} set '%s'='%s'", identifier, value); diff --git a/src/ucm/ucm_subs.c b/src/ucm/ucm_subs.c index 73230a2a..98090fa0 100644 --- a/src/ucm/ucm_subs.c +++ b/src/ucm/ucm_subs.c @@ -826,7 +826,7 @@ static int rval_evali(snd_use_case_mgr_t *uc_mgr, snd_config_t *node, const char */ static inline const char *strchr_with_escape(const char *str, char c) { - char *s; + const char *s; while (1) { s = strchr(str, c); From 757f3a86c95288ddab064fbaa018ea14b276766a Mon Sep 17 00:00:00 2001 From: Rudi Heitbaum Date: Fri, 20 Feb 2026 11:31:51 +0000 Subject: [PATCH 3/3] seq: fix discards const from pointer target Since glibc-2.43: For ISO C23, the functions bsearch, memchr, strchr, strpbrk, strrchr, strstr, wcschr, wcspbrk, wcsrchr, wcsstr and wmemchr that return pointers into their input arrays now have definitions as macros that return a pointer to a const-qualified type when the input argument is a pointer to a const-qualified type. https://lists.gnu.org/archive/html/info-gnu/2026-01/msg00005.html Signed-off-by: Rudi Heitbaum --- src/seq/seqmid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/seq/seqmid.c b/src/seq/seqmid.c index 280a27bd..2bf6afa0 100644 --- a/src/seq/seqmid.c +++ b/src/seq/seqmid.c @@ -424,8 +424,8 @@ int snd_seq_sync_output_queue(snd_seq_t *seq) */ int snd_seq_parse_address(snd_seq_t *seq, snd_seq_addr_t *addr, const char *arg) { - char *p, *buf; - const char *s; + char *buf; + const char *p, *s; char c; long client, port = 0; int len;