diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2012-06-27 06:46:45 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2012-06-27 06:46:45 +0000 |
commit | a627bec67f3529cdda92fa54b38b966cea1967c2 (patch) | |
tree | 5abde58feec61f11291ee784555f14abd5bd4641 /usr.bin/aucat | |
parent | b64d814f611b084c4bac305f0e149054acba8078 (diff) |
Don't return void expressions in functions returning void. Removes
warnings in clang. From dhill. Thanks!
Diffstat (limited to 'usr.bin/aucat')
-rw-r--r-- | usr.bin/aucat/miofile.c | 4 | ||||
-rw-r--r-- | usr.bin/aucat/siofile.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/aucat/miofile.c b/usr.bin/aucat/miofile.c index 3acdc2eb2b7..0f205e4c105 100644 --- a/usr.bin/aucat/miofile.c +++ b/usr.bin/aucat/miofile.c @@ -1,4 +1,4 @@ -/* $OpenBSD: miofile.c,v 1.8 2012/05/23 19:25:11 ratchov Exp $ */ +/* $OpenBSD: miofile.c,v 1.9 2012/06/27 06:46:44 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -158,5 +158,5 @@ miofile_revents(struct file *file, struct pollfd *pfd) void miofile_close(struct file *file) { - return mio_close(((struct miofile *)file)->hdl); + mio_close(((struct miofile *)file)->hdl); } diff --git a/usr.bin/aucat/siofile.c b/usr.bin/aucat/siofile.c index 426c9e34281..cd0bc9dd13c 100644 --- a/usr.bin/aucat/siofile.c +++ b/usr.bin/aucat/siofile.c @@ -1,4 +1,4 @@ -/* $OpenBSD: siofile.c,v 1.11 2012/05/23 19:25:11 ratchov Exp $ */ +/* $OpenBSD: siofile.c,v 1.12 2012/06/27 06:46:44 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -479,5 +479,5 @@ siofile_close(struct file *file) if (f->started) siofile_stop(&f->file); - return sio_close(((struct siofile *)file)->hdl); + sio_close(((struct siofile *)file)->hdl); } |