diff options
author | 2013-02-01 09:02:16 +0000 | |
---|---|---|
committer | 2013-02-01 09:02:16 +0000 | |
commit | 4736f4992913a47cdf4d69a275df39f9b05efde8 (patch) | |
tree | 81c695f243d3a7d5264b42eb5df0911ddfb8d553 /lib/libsndio/sio.c | |
parent | update currency exchange rates; (diff) | |
download | wireguard-openbsd-4736f4992913a47cdf4d69a275df39f9b05efde8.tar.xz wireguard-openbsd-4736f4992913a47cdf4d69a275df39f9b05efde8.zip |
If par->bufsz is set (it's documented as readonly since years) then
reset it and set par->appbufsz instead
Diffstat (limited to 'lib/libsndio/sio.c')
-rw-r--r-- | lib/libsndio/sio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libsndio/sio.c b/lib/libsndio/sio.c index c633354e886..e39b94f1f82 100644 --- a/lib/libsndio/sio.c +++ b/lib/libsndio/sio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sio.c,v 1.11 2012/10/27 11:58:08 ratchov Exp $ */ +/* $OpenBSD: sio.c,v 1.12 2013/02/01 09:02:16 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -161,6 +161,7 @@ sio_setpar(struct sio_hdl *hdl, struct sio_par *par) if (par->bufsz != ~0U) { DPRINTF("sio_setpar: setting bufsz is deprecated\n"); par->appbufsz = par->bufsz; + par->bufsz = ~0U; } if (par->rate != ~0U && par->appbufsz == ~0U) par->appbufsz = par->rate * 200 / 1000; |