ui-tree: ls_tail: add walk table param
Arrange that walk_tree_ctx is available in ls_tail, we
will make use of it shortly.
Signed-off-by: Andy Green <andy@warmcat.com>
Reviewed-by: John Keeping <john@keeping.me.uk>
diff --git a/ui-tree.c b/ui-tree.c
index 721c812..1ccbb22 100644
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -365,7 +365,7 @@
html("</tr>\n");
}
-static void ls_tail(void)
+static void ls_tail(struct walk_tree_context *walk_tree_ctx)
{
html("</table>\n");
cgit_print_layout_end();
@@ -387,7 +387,7 @@
ls_head();
read_tree_recursive(tree, "", 0, 1, &paths, ls_item, walk_tree_ctx);
- ls_tail();
+ ls_tail(walk_tree_ctx);
}
@@ -470,7 +470,7 @@
read_tree_recursive(commit->maybe_tree, "", 0, 0, &paths, walk_tree, &walk_tree_ctx);
if (walk_tree_ctx.state == 1)
- ls_tail();
+ ls_tail(&walk_tree_ctx);
else if (walk_tree_ctx.state == 2)
cgit_print_layout_end();
else