X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=dccp_recv.c;h=69bc186126c2447e5f5d68306a070bd0953a2b1d;hp=4151853947bc0f3069fad111c2bdb25fec3ef468;hb=76f9e57d909a53d30a4f8fe5e924683fa9b7c0d5;hpb=3b447b02e2d74d596ecf6f5f764bf847653d407c diff --git a/dccp_recv.c b/dccp_recv.c index 41518539..69bc1861 100644 --- a/dccp_recv.c +++ b/dccp_recv.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006-2011 Andre Noll + * Copyright (C) 2006-2012 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -19,11 +19,11 @@ #include "list.h" #include "sched.h" #include "ggo.h" +#include "buffer_tree.h" #include "recv.h" #include "string.h" #include "net.h" #include "fd.h" -#include "buffer_tree.h" #include "dccp_recv.cmdline.h" @@ -132,6 +132,9 @@ static void dccp_recv_post_select(struct sched *s, struct task *t) int ret, iovcnt; size_t num_bytes; + ret = task_get_notification(t); + if (ret < 0) + goto out; ret = btr_node_status(btrn, 0, BTR_NT_ROOT); if (ret <= 0) goto out; @@ -151,7 +154,7 @@ static void dccp_recv_post_select(struct sched *s, struct task *t) out: if (ret >= 0) return; - btr_remove_node(rn->btrn); + btr_remove_node(&rn->btrn); t->error = ret; }