]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-tree.c
ui-shared: add cgit_print_error_page() function
[ps-cgit] / ui-tree.c
index 4ab01372e7bacd44b1601ad8b5a5e6a84f9f6b47..2dbe89ea4faef6b3ac35b9fa6d8aa9d30678f328 100644 (file)
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -6,7 +6,6 @@
  *   (see COPYING for full license text)
  */
 
-#include <ctype.h>
 #include "cgit.h"
 #include "ui-tree.h"
 #include "html.h"
@@ -166,7 +165,7 @@ static int ls_item(const unsigned char *sha1, struct strbuf *base,
        html("<td>");
        cgit_log_link("log", NULL, "button", ctx.qry.head,
                      walk_tree_ctx->curr_rev, fullpath.buf, 0, NULL, NULL,
-                     ctx.qry.showmsg);
+                     ctx.qry.showmsg, 0);
        if (ctx.repo->max_stats)
                cgit_stats_link("stats", NULL, "button", ctx.qry.head,
                                fullpath.buf);
@@ -180,7 +179,7 @@ static int ls_item(const unsigned char *sha1, struct strbuf *base,
        return 0;
 }
 
-static void ls_head()
+static void ls_head(void)
 {
        html("<table summary='tree listing' class='list'>\n");
        html("<tr class='nohover'>");
@@ -191,7 +190,7 @@ static void ls_head()
        html("</tr>\n");
 }
 
-static void ls_tail()
+static void ls_tail(void)
 {
        html("</table>\n");
 }