X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=client.c;h=4c4806f928950919d0d763a02104e5d93f316796;hp=5573d037794d8b34049200b9bb32322074a39cbb;hb=e7125356421449de4614aca24446f1d198aa9b3b;hpb=ba0c0797c76a2c94cb4a9f6938274fea5ba0226f diff --git a/client.c b/client.c index 5573d037..4c4806f9 100644 --- a/client.c +++ b/client.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1997-2014 Andre Noll + * Copyright (C) 1997-2014 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -45,18 +45,18 @@ struct exec_task { size_t result_size; }; -static void exec_pre_select(struct sched *s, struct task *t) +static void exec_pre_select(struct sched *s, void *context) { - struct exec_task *et = task_context(t); + struct exec_task *et = context; int ret = btr_node_status(et->btrn, 0, BTR_NT_LEAF); if (ret != 0) sched_min_delay(s); } -static int exec_post_select(__a_unused struct sched *s, struct task *t) +static int exec_post_select(__a_unused struct sched *s, void *context) { - struct exec_task *et = task_context(t); + struct exec_task *et = context; struct btr_node *btrn = et->btrn; char *buf; size_t sz; @@ -533,9 +533,9 @@ struct supervisor_task { struct task *task; }; -static int supervisor_post_select(struct sched *s, struct task *t) +static int supervisor_post_select(struct sched *s, void *context) { - struct supervisor_task *svt = task_context(t); + struct supervisor_task *svt = context; int ret = task_status(ct->task); if (ret < 0)