summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorratchov <ratchov@openbsd.org>2009-07-27 06:30:34 +0000
committerratchov <ratchov@openbsd.org>2009-07-27 06:30:34 +0000
commit11fea108f0e7700863bf4ab83f730147d3ab3183 (patch)
treeb370c24eadec8250cb67a76a94007b8392bbc80b
parentnow in sync with version 1.8.1 (diff)
downloadwireguard-openbsd-11fea108f0e7700863bf4ab83f730147d3ab3183.tar.xz
wireguard-openbsd-11fea108f0e7700863bf4ab83f730147d3ab3183.zip
don't use ``return'' in sio_close() and mio_close()
-rw-r--r--lib/libsndio/mio.c4
-rw-r--r--lib/libsndio/sndio.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libsndio/mio.c b/lib/libsndio/mio.c
index 4e423bebd17..6bdb0a6ac2e 100644
--- a/lib/libsndio/mio.c
+++ b/lib/libsndio/mio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mio.c,v 1.5 2009/07/26 13:33:30 ratchov Exp $ */
+/* $OpenBSD: mio.c,v 1.6 2009/07/27 06:30:34 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -101,7 +101,7 @@ mio_create(struct mio_hdl *hdl, struct mio_ops *ops, unsigned mode, int nbio)
void
mio_close(struct mio_hdl *hdl)
{
- return hdl->ops->close(hdl);
+ hdl->ops->close(hdl);
}
size_t
diff --git a/lib/libsndio/sndio.c b/lib/libsndio/sndio.c
index 9539e26db57..96b21732acf 100644
--- a/lib/libsndio/sndio.c
+++ b/lib/libsndio/sndio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sndio.c,v 1.20 2009/07/26 15:50:04 ratchov Exp $ */
+/* $OpenBSD: sndio.c,v 1.21 2009/07/27 06:30:34 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -237,7 +237,7 @@ sio_create(struct sio_hdl *hdl, struct sio_ops *ops, unsigned mode, int nbio)
void
sio_close(struct sio_hdl *hdl)
{
- return hdl->ops->close(hdl);
+ hdl->ops->close(hdl);
}
int