From: Abramo Bagnara Date: Sun, 18 Feb 2001 18:32:31 +0000 (+0000) Subject: Changed descriptors_count X-Git-Tag: v1.0.3~250 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=536e7b66a56a3ad37a2f6ff9d6503e8547be7f5d;p=alsa-utils.git Changed descriptors_count --- 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);