mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-03-29 07:57:59 -04:00
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 <rudi@heitbaum.com>
This commit is contained in:
parent
5414277612
commit
2769a6f407
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue