]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-commit.c
ui-shared: remove unused parameter
[ps-cgit] / ui-commit.c
index 586fea00435895ce3b32ef9bb13ede1cc425c82c..37c7d8d118495878d2e433e021c9dc25fccb2a57 100644 (file)
@@ -41,7 +41,7 @@ void cgit_print_commit(char *hex, const char *prefix)
 
        format_display_notes(&oid, &notes, PAGE_ENCODING, 0);
 
-       load_ref_decorations(DECORATE_FULL_REFS);
+       load_ref_decorations(NULL, DECORATE_FULL_REFS);
 
        cgit_print_layout_start();
        cgit_print_diff_ctrls();
@@ -110,8 +110,7 @@ void cgit_print_commit(char *hex, const char *prefix)
        }
        if (ctx.repo->snapshots) {
                html("<tr><th>download</th><td colspan='2' class='sha1'>");
-               cgit_print_snapshot_links(ctx.qry.repo, ctx.qry.head,
-                                         hex, ctx.repo->snapshots);
+               cgit_print_snapshot_links(ctx.repo, hex);
                html("</td></tr>");
        }
        html("</table>\n");