From 9528f8a6c09f203ae2a272f0d962996331bd4414 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Thu, 27 Sep 2001 19:14:26 +0000 Subject: [PATCH] Fixed compilation --- amixer/amixer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;