X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=sidebyside;f=sync_filter.c;h=fceb1d1cc8bbfe64c7aefe4eb9175d69560b14c8;hb=879e52d49df6d00aa9eafe5cccb48bbd24ed4c81;hp=203451f2c23cef6cec6db8072654cbf123a30a0e;hpb=57a04f35f4e97d5f63079620dab3493832a851af;p=paraslash.git diff --git a/sync_filter.c b/sync_filter.c index 203451f2..fceb1d1c 100644 --- a/sync_filter.c +++ b/sync_filter.c @@ -258,10 +258,10 @@ static void sync_set_timeout(struct sync_filter_context *ctx, tv_add(now, &to, &ctx->timeout); } -static void sync_pre_select(struct sched *s, struct task *t) +static void sync_pre_select(struct sched *s, void *context) { int ret; - struct filter_node *fn = task_context(t); + struct filter_node *fn = context; struct sync_filter_context *ctx = fn->private_data; struct sync_filter_config *sfc = fn->conf; @@ -295,10 +295,10 @@ static struct sync_buddy *sync_find_buddy(struct sockaddr *addr, return NULL; } -static int sync_post_select(__a_unused struct sched *s, struct task *t) +static int sync_post_select(__a_unused struct sched *s, void *context) { int ret; - struct filter_node *fn = task_context(t); + struct filter_node *fn = context; struct sync_filter_context *ctx = fn->private_data; struct sync_filter_config *sfc = fn->conf; struct sync_buddy *buddy, *tmp;