X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=buffer_tree.c;h=3f1cc716df1aa48551cc2d9496427cdd84ee9cb2;hb=3db64b098184e08bfac7939775ad9db9ebfc72fb;hp=1b859f520ebf4aa16d0a13df897395d97da423d9;hpb=ad9154ccd56f318675e19d773c0a848aab7fd574;p=paraslash.git diff --git a/buffer_tree.c b/buffer_tree.c index 1b859f52..3f1cc716 100644 --- a/buffer_tree.c +++ b/buffer_tree.c @@ -634,7 +634,7 @@ void btr_consume(struct btr_node *btrn, size_t numbytes) numbytes -= br->btrb->size - br->consumed; btr_drop_buffer_reference(br); } - assert(true); + assert(false); } /* * We have a wrap buffer, consume from it. If in total, i.e. including @@ -670,6 +670,8 @@ static void flush_input_queue(struct btr_node *btrn) /** * Free all resources allocated by btr_new_node(). * + * \param btrn Pointer to a btr node obtained by \ref btr_new_node(). + * * Like free(3), it is OK to call this with a \p NULL pointer argument. */ void btr_free_node(struct btr_node *btrn) @@ -1067,7 +1069,7 @@ struct btr_node *btr_search_node(const char *name, struct btr_node *root) } /** 640K ought to be enough for everybody ;) */ -#define BTRN_MAX_PENDING (640 * 1024) +#define BTRN_MAX_PENDING (96 * 1024) /** * Return the current state of a buffer tree node.