X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=stdin.c;h=eea78b3eb8cabee7c39900c248a2e9f116426872;hb=181beb316afad036ac01a778544c5dec0a8d51c7;hp=7b70690b9a5f80626ad979595ee211bcf0037ded;hpb=66b97974ebba5c6ea967b713f84f62a1b72da8d2;p=paraslash.git diff --git a/stdin.c b/stdin.c index 7b70690b..eea78b3e 100644 --- a/stdin.c +++ b/stdin.c @@ -1,8 +1,4 @@ -/* - * Copyright (C) 2006 Andre Noll - * - * Licensed under the GPL v2. For licencing details see COPYING. - */ +/* Copyright (C) 2006 Andre Noll , see file COPYING. */ /** \file stdin.c Functions that deal with reading from stdin. */ @@ -41,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; @@ -68,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)