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
4 changes: 2 additions & 2 deletions alsactl/init_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ static const char *elemid_get(struct space *space, const char *attr)
int err, index = 0;
snd_hctl_elem_t *elem;
snd_ctl_elem_id_t *id;
char *pos = strchr(attr, ' ');
const char *pos = strchr(attr, ' ');
if (pos)
index = strtol(pos, NULL, 0);
err = snd_ctl_elem_id_malloc(&id);
Expand Down Expand Up @@ -1281,7 +1281,7 @@ static char *new_root_dir(const char *filename)
/* return non-zero if the file name has the extension ".conf" */
static int conf_name_filter(const struct dirent *d)
{
char *ext = strrchr(d->d_name, '.');
const char *ext = strrchr(d->d_name, '.');
return ext && !strcmp(ext, ".conf");
}

Expand Down
2 changes: 1 addition & 1 deletion aplay/aplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -3209,7 +3209,7 @@ static int new_capture_file(char *name, char *namebuf, size_t namelen,
*/
int create_path(const char *path)
{
char *start;
const char *start;
mode_t mode = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH;

if (path[0] == '/')
Expand Down
7 changes: 4 additions & 3 deletions topology/pre-process-dapm.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ static int tplg_pp_get_widget_name(struct tplg_pre_processor *tplg_pp,
{
snd_config_iterator_t i, next;
snd_config_t *temp_cfg, *child, *class_cfg, *n;
char *class_name, *args, *widget_name;
const char *args;
char *class_name, *widget_name;
int ret;

/* get class name */
Expand Down Expand Up @@ -221,8 +222,8 @@ static int tplg_pp_get_widget_name(struct tplg_pre_processor *tplg_pp,

/* construct widget name using the constructor argument values */
snd_config_for_each(i, next, temp_cfg) {
const char *id;
char *arg, *remaining, *temp;
const char *id, *remaining;
char *arg, *temp;

n = snd_config_iterator_entry(i);
if (snd_config_get_string(n, &id) < 0)
Expand Down
4 changes: 2 additions & 2 deletions topology/pre-process-object.c
Original file line number Diff line number Diff line change
Expand Up @@ -542,8 +542,8 @@ static int tplg_pp_add_object_tuple_section(struct tplg_pre_processor *tplg_pp,
const char *token_ref, const char *array_name)
{
snd_config_t *top, *tuple_cfg, *child, *cfg, *new;
const char *id;
char *token, *type, *str;
const char *id, *type;
char *token, *str;
long tuple_value;
int ret;

Expand Down