From 536e7b66a56a3ad37a2f6ff9d6503e8547be7f5d Mon Sep 17 00:00:00 2001 From: Abramo Bagnara Date: Sun, 18 Feb 2001 18:32:31 +0000 Subject: [PATCH] Changed descriptors_count --- alsamixer/alsamixer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/alsamixer/alsamixer.c b/alsamixer/alsamixer.c index 4b577b1..b0b4a0c 100644 --- a/alsamixer/alsamixer.c +++ b/alsamixer/alsamixer.c @@ -1461,7 +1461,7 @@ static int mixer_iteration (void) { struct timeval delay = { 0, 0 }; - unsigned int count; + int count; struct pollfd *fds; int err; int finished = 0; @@ -1469,8 +1469,8 @@ mixer_iteration (void) int old_view; /* setup for select on stdin and the mixer fd */ - if ((err = snd_mixer_poll_descriptors_count(mixer_handle, &count)) < 0) - mixer_abort (ERR_FCN, "snd_mixer_poll_descriptors_count", err); + if ((count = snd_mixer_poll_descriptors_count(mixer_handle)) < 0) + mixer_abort (ERR_FCN, "snd_mixer_poll_descriptors_count", count); fds = calloc(count + 1, sizeof(struct pollfd)); if (fds == NULL) mixer_abort (ERR_FCN, "malloc", 0); -- 2.47.1