summaryrefslogtreecommitdiff
path: root/usr.bin/aucat/aproc.c
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2008-06-02 17:05:13 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2008-06-02 17:05:13 +0000
commit7acbe9bac02644fe71bdcff64b6608a143684ea9 (patch)
tree851992f247ca5c7f15b35b56307bbd9410fc35ee /usr.bin/aucat/aproc.c
parentaf8d1222b93dc5a82cc0a0e32e4ab53529cea230 (diff)
since underruns/overruns are handled outside devices, remove code that
check for xruns in devices. ok jakemsr
Diffstat (limited to 'usr.bin/aucat/aproc.c')
-rw-r--r--usr.bin/aucat/aproc.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/usr.bin/aucat/aproc.c b/usr.bin/aucat/aproc.c
index fa060326135..b1131acdd57 100644
--- a/usr.bin/aucat/aproc.c
+++ b/usr.bin/aucat/aproc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aproc.c,v 1.3 2008/06/02 17:03:25 ratchov Exp $ */
+/* $OpenBSD: aproc.c,v 1.4 2008/06/02 17:05:12 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -104,9 +104,6 @@ rpipe_in(struct aproc *p, struct abuf *ibuf_dummy)
unsigned char *data;
unsigned count;
- if (!(f->state & FILE_RFLOW) && ABUF_FULL(obuf))
- errx(1, "%s: overrun, unimplemented", f->name);
-
if (ABUF_FULL(obuf))
return 0;
data = abuf_wgetblk(obuf, &count, 0);
@@ -167,7 +164,6 @@ rpipe_new(struct file *f)
p->u.io.file = f;
f->rproc = p;
f->events |= POLLIN;
- f->state |= FILE_RFLOW;
return p;
}
@@ -208,9 +204,6 @@ wpipe_out(struct aproc *p, struct abuf *obuf_dummy)
unsigned char *data;
unsigned count;
- if (!(f->state & FILE_WFLOW) && ABUF_EMPTY(ibuf))
- errx(1, "%s: underrun, unimplemented", f->name);
-
if (ABUF_EMPTY(ibuf))
return 0;
data = abuf_rgetblk(ibuf, &count, 0);
@@ -256,7 +249,6 @@ wpipe_new(struct file *f)
p->u.io.file = f;
f->wproc = p;
f->events |= POLLOUT;
- f->state |= FILE_WFLOW;
return p;
}