summaryrefslogtreecommitdiff
path: root/usr.bin/sndiod/dev.h
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2021-01-28 11:15:32 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2021-01-28 11:15:32 +0000
commit305dfd425594dfa4017b1fc81e45ad43a7fd2b08 (patch)
treeeab5bfd53cbd8b697806973f049b98a11ed3117d /usr.bin/sndiod/dev.h
parent57f179855411f37933dd7da9f9471b04b23e0d87 (diff)
Dont attempt to drain disconnected clients
Clients are always drained before they disconnect, so this change affects programs that die unexpectedly or loose thier network connection. Besides the bad style, this change fixes a theoretical bug when the disconnected client slot could be recycled and given to another client while it's being drained
Diffstat (limited to 'usr.bin/sndiod/dev.h')
-rw-r--r--usr.bin/sndiod/dev.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/sndiod/dev.h b/usr.bin/sndiod/dev.h
index 74408313124..564f8caea17 100644
--- a/usr.bin/sndiod/dev.h
+++ b/usr.bin/sndiod/dev.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dev.h,v 1.30 2021/01/28 11:02:28 ratchov Exp $ */
+/* $OpenBSD: dev.h,v 1.31 2021/01/28 11:15:31 ratchov Exp $ */
/*
* Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org>
*
@@ -306,7 +306,7 @@ struct slot *slot_new(struct dev *, struct opt *, unsigned int, char *,
void slot_del(struct slot *);
void slot_setvol(struct slot *, unsigned int);
void slot_start(struct slot *);
-void slot_stop(struct slot *);
+void slot_stop(struct slot *, int);
void slot_read(struct slot *);
void slot_write(struct slot *);
void slot_initconv(struct slot *);