mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-03-30 11:10:19 -04:00
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 <rudi@heitbaum.com>
This commit is contained in:
parent
2769a6f407
commit
a7ef4c9ea4
2 changed files with 7 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue