]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - oss_write.c
sched: Introduce sched_{read,write}_ok().
[paraslash.git] / oss_write.c
index 0565167c256a43bfe86a6442f195a320e1458db8..75ad98b9faac0acfa912628c6bafed31d085b90b 100644 (file)
@@ -222,7 +222,7 @@ static int oss_post_select(__a_unused struct sched *s, void *context)
                goto out;
        }
        ret = 0;
-       if (!FD_ISSET(powd->fd, &s->wfds))
+       if (!sched_write_ok(powd->fd, s))
                goto out;
        /* get maximal number of bytes that can be written */
        ret = ioctl(powd->fd, SNDCTL_DSP_GETOSPACE, &abi);