From d29a1515fbb74f7853fa771698e90646c24bde33 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 31 Dec 2009 18:37:41 +0100 Subject: [PATCH] btr: Fix a silly warning. --- buffer_tree.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } /** -- 2.39.5