btr: Fix a silly warning.
authorAndre Noll <maan@systemlinux.org>
Thu, 31 Dec 2009 17:37:41 +0000 (18:37 +0100)
committerAndre Noll <maan@systemlinux.org>
Thu, 31 Dec 2009 17:37:41 +0000 (18:37 +0100)
buffer_tree.c

index b7420eb..1cb295b 100644 (file)
@@ -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;
 }
 
 /**