mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 04:55:41 +01:00
Fixed typo & thinko
This commit is contained in:
parent
fbec0a5f8d
commit
abd8b9f9e8
1 changed files with 2 additions and 1 deletions
|
@ -666,6 +666,7 @@ static int parse_simple_id(const char *str, snd_mixer_selem_id_t *sid)
|
||||||
return 0;
|
return 0;
|
||||||
if (*str != ',')
|
if (*str != ',')
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
*ptr = 0; /* terminate the string */
|
||||||
str++;
|
str++;
|
||||||
if (!isdigit(*str))
|
if (!isdigit(*str))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
@ -879,7 +880,7 @@ static int sset(unsigned int argc, char *argv[], int roflag)
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
min = snd_mixer_selem_info_get_min(info);
|
min = snd_mixer_selem_info_get_min(info);
|
||||||
max = snd_mixer_selem_info_get_min(info);
|
max = snd_mixer_selem_info_get_max(info);
|
||||||
if (roflag)
|
if (roflag)
|
||||||
goto __skip_write;
|
goto __skip_write;
|
||||||
for (idx = 1; idx < argc; idx++) {
|
for (idx = 1; idx < argc; idx++) {
|
||||||
|
|
Loading…
Reference in a new issue