From 2769a6f4079a31677b88d2c538104ac42f47bdf3 Mon Sep 17 00:00:00 2001 From: Rudi Heitbaum Date: Fri, 20 Feb 2026 11:31:02 +0000 Subject: [PATCH] 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;