]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-repolist.c
git: update to v2.46.0
[ps-cgit] / ui-repolist.c
index 41424c0881dee009816a3effc75ef1d116f06955..d12e3dd3593fda4179740c4540aee02260f47007 100644 (file)
@@ -11,7 +11,7 @@
 #include "html.h"
 #include "ui-shared.h"
 
 #include "html.h"
 #include "ui-shared.h"
 
-static time_t read_agefile(char *path)
+static time_t read_agefile(const char *path)
 {
        time_t result;
        size_t size;
 {
        time_t result;
        size_t size;
@@ -20,7 +20,7 @@ static time_t read_agefile(char *path)
 
        if (readfile(path, &buf, &size)) {
                free(buf);
 
        if (readfile(path, &buf, &size)) {
                free(buf);
-               return -1;
+               return 0;
        }
 
        if (parse_date(buf, &date_buf) == 0)
        }
 
        if (parse_date(buf, &date_buf) == 0)
@@ -321,7 +321,7 @@ void cgit_print_repolist(void)
                }
                htmlf("<tr><td class='%s'>",
                      !sorted && section ? "sublevel-repo" : "toplevel-repo");
                }
                htmlf("<tr><td class='%s'>",
                      !sorted && section ? "sublevel-repo" : "toplevel-repo");
-               cgit_summary_link(ctx.repo->name, ctx.repo->name, NULL, NULL);
+               cgit_summary_link(ctx.repo->name, NULL, NULL, NULL);
                html("</td><td>");
                repourl = cgit_repourl(ctx.repo->url);
                html_link_open(repourl, NULL, NULL);
                html("</td><td>");
                repourl = cgit_repourl(ctx.repo->url);
                html_link_open(repourl, NULL, NULL);