From 7acbe9bac02644fe71bdcff64b6608a143684ea9 Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Mon, 2 Jun 2008 17:05:13 +0000 Subject: since underruns/overruns are handled outside devices, remove code that check for xruns in devices. ok jakemsr --- usr.bin/aucat/aproc.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'usr.bin/aucat/aproc.c') 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 * @@ -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; } -- cgit v1.2.3