From 7027fdf46ce85a5051530bbbf13a6d07f4199f4a Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Mon, 12 Nov 2012 18:05:55 +0100 Subject: [PATCH] dont call revents twice --- sndiod/siofile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sndiod/siofile.c b/sndiod/siofile.c index e051d4e..9402b2c 100644 --- a/sndiod/siofile.c +++ b/sndiod/siofile.c @@ -226,7 +226,7 @@ dev_sio_revents(void *arg, struct pollfd *pfd) events = sio_revents(d->sio.hdl, pfd); #ifdef DEBUG - d->sio.events = sio_revents(d->sio.hdl, pfd); + d->sio.events = events; #endif return events; }