This commit is contained in:
Rudi Heitbaum 2026-03-19 10:14:07 +08:00 committed by GitHub
commit 804a86f0e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 7 deletions

View file

@ -4443,7 +4443,7 @@ int snd_config_hook_load_for_all_cards(snd_config_t *root, snd_config_t *config,
goto __err; goto __err;
} }
while (1) { while (1) {
char *s = strchr(driver, '.'); const char *s = strchr(driver, '.');
if (s == NULL) if (s == NULL)
break; break;
driver = s + 1; driver = s + 1;

View file

@ -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) int snd_seq_parse_address(snd_seq_t *seq, snd_seq_addr_t *addr, const char *arg)
{ {
char *p, *buf; char *buf;
const char *s; const char *p, *s;
char c; char c;
long client, port = 0; long client, port = 0;
int len; int len;

View file

@ -2379,7 +2379,8 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
const char *identifier, const char *identifier,
const char **list[]) const char **list[])
{ {
char *str, *str1; char *str;
const char *str1;
int err, i; int err, i;
if (uc_mgr == NULL || identifier == NULL) { 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, const char *identifier,
long *value) long *value)
{ {
char *str, *str1; char *str;
const char *str1;
int err; int err;
pthread_mutex_lock(&uc_mgr->mutex); 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 *identifier,
const char *value) const char *value)
{ {
char *str, *str1; char *str;
const char *str1;
int err = 0; int err = 0;
snd_trace(UCM, "{API call} set '%s'='%s'", identifier, value); snd_trace(UCM, "{API call} set '%s'='%s'", identifier, value);

View file

@ -938,7 +938,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) static inline const char *strchr_with_escape(const char *str, char c)
{ {
char *s; const char *s;
while (1) { while (1) {
s = strchr(str, c); s = strchr(str, c);