X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=dccp_recv.c;h=a45b572d9a322f72f76e54ab323e1859144ee8d1;hp=1c41fd3c0d0d9d09b745bbd48fdabc181c74fec4;hb=879e52d49df6d00aa9eafe5cccb48bbd24ed4c81;hpb=57a04f35f4e97d5f63079620dab3493832a851af diff --git a/dccp_recv.c b/dccp_recv.c index 1c41fd3c..a45b572d 100644 --- a/dccp_recv.c +++ b/dccp_recv.c @@ -119,24 +119,24 @@ static void *dccp_recv_parse_config(int argc, char **argv) return tmp; } -static void dccp_recv_pre_select(struct sched *s, struct task *t) +static void dccp_recv_pre_select(struct sched *s, void *context) { - struct receiver_node *rn = task_context(t); + struct receiver_node *rn = context; - if (generic_recv_pre_select(s, t) <= 0) + if (generic_recv_pre_select(s, rn) <= 0) return; para_fd_set(rn->fd, &s->rfds, &s->max_fileno); } -static int dccp_recv_post_select(struct sched *s, struct task *t) +static int dccp_recv_post_select(struct sched *s, void *context) { - struct receiver_node *rn = task_context(t); + struct receiver_node *rn = context; struct btr_node *btrn = rn->btrn; struct iovec iov[2]; int ret, iovcnt; size_t num_bytes; - ret = task_get_notification(t); + ret = task_get_notification(rn->task); if (ret < 0) goto out; ret = btr_node_status(btrn, 0, BTR_NT_ROOT);