From: Jaroslav Kysela Date: Thu, 27 Sep 2001 19:14:26 +0000 (+0000) Subject: Fixed compilation X-Git-Tag: v1.0.3~188 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=9528f8a6c09f203ae2a272f0d962996331bd4414;p=alsa-utils.git Fixed compilation --- diff --git a/amixer/amixer.c b/amixer/amixer.c index 08a6087..8ed7d48 100644 --- a/amixer/amixer.c +++ b/amixer/amixer.c @@ -948,8 +948,8 @@ static int cset(int argc, char *argv[], int roflag) tmp = 1; ptr += 3; } else if (!strncasecmp(ptr, "toggle", 6)) { - snd_ctl_elem_value_get_boolean(control, idx, &tmp); - tmp = tmp ? 0 : 1; + tmp = snd_ctl_elem_value_get_boolean(control, idx); + tmp = tmp > 0 ? 0 : 1; ptr += 6; } else if (atoi(ptr)) { tmp = 1;