]> git.cameronkatri.com Git - cgit.git/blobdiff - ui-repolist.c
global: use proper accessors for maybe_tree
[cgit.git] / ui-repolist.c
index af52f9ba0c6459de7c899d5f15a86b3e9948f3d7..529a2038baa21617d52d742894b3a06120378dd7 100644 (file)
@@ -11,7 +11,7 @@
 #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;
@@ -20,7 +20,7 @@ static time_t read_agefile(char *path)
 
        if (readfile(path, &buf, &size)) {
                free(buf);
-               return -1;
+               return 0;
        }
 
        if (parse_date(buf, &date_buf) == 0)
@@ -288,9 +288,6 @@ void cgit_print_repolist(void)
        cgit_print_docstart();
        cgit_print_pageheader();
 
-       if (ctx.cfg.index_header)
-               html_include(ctx.cfg.index_header);
-
        if (ctx.qry.sort)
                sorted = sort_repolist(ctx.qry.sort);
        else if (ctx.cfg.section_sort)