diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2013-11-18 17:23:13 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2013-11-18 17:23:13 +0000 |
commit | f22b9aa4bcdd430d10b8b094f5e4dbe3199f7992 (patch) | |
tree | 2bb9496a93f293e1fd00555625463887adedd58f /regress/lib/libsndio/vol/vol.c | |
parent | a97d73e68bc2b36fcb48bc73cb3e4d109b43e64b (diff) |
cleanup style
Diffstat (limited to 'regress/lib/libsndio/vol/vol.c')
-rw-r--r-- | regress/lib/libsndio/vol/vol.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/regress/lib/libsndio/vol/vol.c b/regress/lib/libsndio/vol/vol.c index 46c162e0014..9cff949dd2a 100644 --- a/regress/lib/libsndio/vol/vol.c +++ b/regress/lib/libsndio/vol/vol.c @@ -11,6 +11,10 @@ #include "tools.h" #define BUFSZ 0x100 + +void usage(void); +void onvol(void *, unsigned); + unsigned char buf[BUFSZ]; struct sio_par par; unsigned vol = 0xdeadbeef; @@ -95,7 +99,7 @@ main(int argc, char **argv) { } } - hdl = sio_open(NULL, SIO_PLAY, 0); + hdl = sio_open(SIO_DEVANY, SIO_PLAY, 0); if (hdl == NULL) { fprintf(stderr, "sio_open() failed\n"); exit(1); @@ -115,7 +119,7 @@ main(int argc, char **argv) { pfd[0].fd = tty; pfd[0].events = POLLIN; sio_pollfd(hdl, &pfd[1], POLLOUT); - if (poll(pfd, 2, INFTIM) < 0) { + if (poll(pfd, 2, -1) < 0) { perror("poll"); exit(1); } |