}
if (conf->buffer_tree_given) {
char *buf;
- if (btr_bytes_pending(rn->btr_root) > HTTP_RECV_MAX_PENDING) {
+ if (btr_bytes_pending(rn->btrn) > HTTP_RECV_MAX_PENDING) {
t->error = -E_HTTP_RECV_OVERRUN;
return;
}
free(buf);
return;
}
- btr_add_output(buf, t->error, rn->btr_root);
+ btr_add_output(buf, t->error, rn->btrn);
return;
}
t->error = -E_HTTP_RECV_OVERRUN;
}
r = &receivers[receiver_num];
rn.receiver = r;
- rn.btr_root = btr_new_node("receiver", NULL /* no parent */);
+ rn.btrn = btr_new_node("receiver", NULL /* no parent */);
ret = r->open(&rn);
if (ret < 0)
goto out;
ret = schedule(&s);
out:
if (r_opened) {
- btr_del_node(rn.btr_root);
+ btr_del_node(rn.btrn);
r->close(&rn);
}
if (r)
/** The task associated with this instance. */
struct task task;
/** The receiver node is always the root of the buffer tree. */
- struct btr_node *btr_root;
+ struct btr_node *btrn;
};
/**