changeset 36467:645cbd086d2b

Merge declaration and initialization. This matches standard MPlayer style better.
author reimar
date Tue, 31 Dec 2013 15:31:23 +0000
parents 9824daf4a867
children 8f0fd63eca7f
files libao2/ao_sndio.c
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }