From: Andre Noll Date: Thu, 31 Dec 2009 17:37:41 +0000 (+0100) Subject: btr: Fix a silly warning. X-Git-Tag: v0.4.2~224 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=d29a1515fbb74f7853fa771698e90646c24bde33;p=paraslash.git btr: Fix a silly warning. --- diff --git a/buffer_tree.c b/buffer_tree.c index b7420ebe..1cb295b4 100644 --- a/buffer_tree.c +++ b/buffer_tree.c @@ -166,6 +166,9 @@ size_t btr_get_buffer_by_reference(struct btr_buffer_reference *br, char **buf) return br_available_bytes(br); } +/** + * \return zero if the input buffer queue is empty. + */ size_t btr_next_buffer(struct btr_node *btrn, char **bufp) { struct btr_buffer_reference *br; @@ -244,7 +247,6 @@ void btr_splice_out_node(struct btr_node *btrn) assert(list_empty(&btrn->children)); free(btrn->name); free(btrn); - return 1; } /**