X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=stdout.c;h=ba5f19670fce6c3c04d256a2056477064f5df7d3;hb=4ce5b6570ed83ef2ab5296f369f147593507286b;hp=f31b8675d2d85900f4abf88c948fc45bbfc8f128;hpb=a62a0bb8fab75f42a3ae165d85e01fb0b98de056;p=paraslash.git diff --git a/stdout.c b/stdout.c index f31b8675..ba5f1967 100644 --- a/stdout.c +++ b/stdout.c @@ -11,7 +11,7 @@ #include "buffer_tree.h" /* Monitor STDOUT_FILENO if there is input data available. */ -static void stdout_pre_select(struct sched *s, void *context) +static void stdout_pre_monitor(struct sched *s, void *context) { struct stdout_task *sot = context; int ret; @@ -27,7 +27,7 @@ static void stdout_pre_select(struct sched *s, void *context) * If input from the buffer tree is available and STDOUT_FILENO is ready, write * as much as possible. */ -static int stdout_post_select(struct sched *s, void *context) +static int stdout_post_monitor(struct sched *s, void *context) { struct stdout_task *sot = context; struct btr_node *btrn = sot->btrn; @@ -79,8 +79,8 @@ void stdout_task_register(struct stdout_task *sot, struct sched *s) { int ret; struct task_info ti = { - .pre_select = stdout_pre_select, - .post_select = stdout_post_select, + .pre_monitor = stdout_pre_monitor, + .post_monitor = stdout_post_monitor, .context = sot, .name = "stdout", };