Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/seq/seqmid.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
9 changes: 6 additions & 3 deletions src/ucm/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/ucm/ucm_subs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down