]> git.tue.mpg.de Git - paraslash.git/commitdiff
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 b7420ebeeb38e70f85ad4c9f34fa215b59504f61..1cb295b4de02e3ca3003f83043cf34d536f2ffc5 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;
 }
 
 /**