]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-tree.c
Don't show the the branch selector button if javascript is enabled
[ps-cgit] / ui-tree.c
index 15d1f5a923c87f9b30bc284ca2c8250a208e1563..c22e30b82ef08f0901fe32d8ebe72afdc7b6e919 100644 (file)
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -15,7 +15,7 @@ int header = 0;
 static void print_object(const unsigned char *sha1, char *path)
 {
        enum object_type type;
-       unsigned char *buf;
+       char *buf;
        unsigned long size, lineno, start, idx;
        const char *linefmt = "<tr><td class='no'><a name='%1$d'>%1$d</a></td><td class='txt'>";
 
@@ -100,7 +100,7 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen,
 
        html("<td>");
        cgit_log_link("log", NULL, "button", cgit_query_head, curr_rev,
-                     fullpath, 0);
+                     fullpath, 0, NULL, NULL);
        html("</td></tr>\n");
        free(name);
        return 0;