diff options
author | 2016-01-09 08:27:24 +0000 | |
---|---|---|
committer | 2016-01-09 08:27:24 +0000 | |
commit | e8cc0bfd63a2ec0ff314665d4885c8c89759950b (patch) | |
tree | 4bdff8331f411c8ec9c73372575444b94f7c6074 /lib/libsndio/sio.c | |
parent | drop "abort" promise, and make it the default behaviour. (diff) | |
download | wireguard-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.c | 8 |
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; |