# HG changeset patch # User reimar # Date 1388503883 0 # Node ID 645cbd086d2ba65392affd8731547a7f58d9a1ea # Parent 9824daf4a867513ca3d4541196039dbffc0cbc44 Merge declaration and initialization. This matches standard MPlayer style better. diff -r 9824daf4a867 -r 645cbd086d2b libao2/ao_sndio.c --- a/libao2/ao_sndio.c Tue Dec 31 15:31:15 2013 +0000 +++ b/libao2/ao_sndio.c Tue Dec 31 15:31:23 2013 +0000 @@ -188,9 +188,7 @@ */ static void refresh(void) { - int n; - - n = sio_pollfd(hdl, pfds, POLLOUT); + int n = sio_pollfd(hdl, pfds, POLLOUT); while (poll(pfds, n, 0) < 0 && errno == EINTR) ; /* nothing */ sio_revents(hdl, pfds); @@ -219,9 +217,7 @@ */ static int play(void *data, int len, int flags) { - int n; - - n = sio_write(hdl, data, len); + int n = sio_write(hdl, data, len); delay += n; return n; }