diff options
author | 2011-04-18 23:57:35 +0000 | |
---|---|---|
committer | 2011-04-18 23:57:35 +0000 | |
commit | 7e5c91da414179335982dec10d2728a79533d1fb (patch) | |
tree | 8f084c99561bc70632ee9ec5acf10944747f8af5 /lib/libsndio/sio_aucat.c | |
parent | read(2) returns ssize_t. So use a ssize_t to store and test the (diff) | |
download | wireguard-openbsd-7e5c91da414179335982dec10d2728a79533d1fb.tar.xz wireguard-openbsd-7e5c91da414179335982dec10d2728a79533d1fb.zip |
slightly cleanup by separating socket-specific code from
protocol specific code. No behaviour change
Diffstat (limited to 'lib/libsndio/sio_aucat.c')
-rw-r--r-- | lib/libsndio/sio_aucat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libsndio/sio_aucat.c b/lib/libsndio/sio_aucat.c index 83b73bd8545..abdce5efb64 100644 --- a/lib/libsndio/sio_aucat.c +++ b/lib/libsndio/sio_aucat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sio_aucat.c,v 1.4 2011/04/16 11:51:47 ratchov Exp $ */ +/* $OpenBSD: sio_aucat.c,v 1.5 2011/04/18 23:57:35 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -146,7 +146,7 @@ sio_aucat_open(const char *str, unsigned mode, int nbio) hdl = malloc(sizeof(struct sio_aucat_hdl)); if (hdl == NULL) return NULL; - if (!aucat_open(&hdl->aucat, str, AUCAT_PATH, mode, nbio)) { + if (!aucat_open(&hdl->aucat, str, mode, 1)) { free(hdl); return NULL; } |