]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - stdin.c
fd: Drop fd_set parameter from read_nonblock() and friends.
[paraslash.git] / stdin.c
diff --git a/stdin.c b/stdin.c
index 9408235a045a6767e2acf443208d95196990d379..eea78b3eb8cabee7c39900c248a2e9f116426872 100644 (file)
--- a/stdin.c
+++ b/stdin.c
@@ -37,7 +37,7 @@ static void stdin_pre_select(struct sched *s, void *context)
  * during the previous pre_select call. If so, and if STDIN_FILENO is readable,
  * data is read from stdin and fed into the buffer tree.
  */
-static int stdin_post_select(struct sched *s, void *context)
+static int stdin_post_select(__a_unused struct sched *s, void *context)
 {
        struct stdin_task *sit = context;
        ssize_t ret;
@@ -64,7 +64,7 @@ static int stdin_post_select(struct sched *s, void *context)
         * reference can not be freed, we're stuck.
         */
        sz = PARA_MIN(sz, btr_pool_size(sit->btrp) / 2);
-       ret = read_nonblock(STDIN_FILENO, buf, sz, &s->rfds, &n);
+       ret = read_nonblock(STDIN_FILENO, buf, sz, &n);
        if (n > 0)
                btr_add_output_pool(sit->btrp, n, sit->btrn);
        if (ret >= 0)