alsamixer: Store return values of poll functions in a signed integer

Negative return values are used for errors and storing
them in an unsigned integer will make it impossible to
detect the errors.

Fixes bug #644845.
This commit is contained in:
Blaise Gassend 2011-03-15 19:47:11 +01:00 committed by Sebastian Dröge
parent a38fd9f9ec
commit 185a8ddcaa

View file

@ -416,7 +416,7 @@ static void
task_monitor_alsa (gpointer data) task_monitor_alsa (gpointer data)
{ {
struct pollfd *pfds; struct pollfd *pfds;
unsigned int nfds, rnfds; int nfds, rnfds;
unsigned short revents; unsigned short revents;
GstAlsaMixer *mixer = (GstAlsaMixer *) data; GstAlsaMixer *mixer = (GstAlsaMixer *) data;
gint ret; gint ret;