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();
ls_head();
read_tree_recursive(tree, "", 0, 1, &paths, ls_item, walk_tree_ctx);
- ls_tail();
+ ls_tail(walk_tree_ctx);
}
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