summaryrefslogtreecommitdiffstats
path: root/lib/libsndio/sio.c
diff options
context:
space:
mode:
authorratchov <ratchov@openbsd.org>2016-01-09 08:27:24 +0000
committerratchov <ratchov@openbsd.org>2016-01-09 08:27:24 +0000
commite8cc0bfd63a2ec0ff314665d4885c8c89759950b (patch)
tree4bdff8331f411c8ec9c73372575444b94f7c6074 /lib/libsndio/sio.c
parentdrop "abort" promise, and make it the default behaviour. (diff)
downloadwireguard-openbsd-e8cc0bfd63a2ec0ff314665d4885c8c89759950b.tar.xz
wireguard-openbsd-e8cc0bfd63a2ec0ff314665d4885c8c89759950b.zip
Make code fit in 80 columns, remove trailing spaces & tabs.
Diffstat (limited to 'lib/libsndio/sio.c')
-rw-r--r--lib/libsndio/sio.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libsndio/sio.c b/lib/libsndio/sio.c
index 1e4f965c862..ea7dfdc6fd7 100644
--- a/lib/libsndio/sio.c
+++ b/lib/libsndio/sio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sio.c,v 1.20 2015/11/22 12:01:23 ratchov Exp $ */
+/* $OpenBSD: sio.c,v 1.21 2016/01/09 08:27:24 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -152,7 +152,7 @@ sio_setpar(struct sio_hdl *hdl, struct sio_par *par)
return 0;
}
if (par->__magic != SIO_PAR_MAGIC) {
- DPRINTF("sio_setpar: use of uninitialized sio_par structure\n");
+ DPRINTF("sio_setpar: uninitialized sio_par structure\n");
hdl->eof = 1;
return 0;
}
@@ -435,7 +435,7 @@ sio_onmove(struct sio_hdl *hdl, void (*cb)(void *, int), void *addr)
#ifdef DEBUG
void
_sio_printpos(struct sio_hdl *hdl)
-{
+{
struct timespec ts;
long long rpos, rdiff;
long long cpos, cdiff;
@@ -448,7 +448,7 @@ _sio_printpos(struct sio_hdl *hdl)
rround = hdl->par.round * rbpf;
wround = hdl->par.round * wbpf;
- rpos = (hdl->mode & SIO_REC) ?
+ rpos = (hdl->mode & SIO_REC) ?
hdl->cpos * rbpf - hdl->rused : 0;
wpos = (hdl->mode & SIO_PLAY) ?
hdl->cpos * wbpf + hdl->wused : 0;