X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/e01229cf80bc618a132d2154c0ebd71792d31c64..c8ea73caabcb16ffb74baa70d35650027ed772c4:/ui-repolist.c diff --git a/ui-repolist.c b/ui-repolist.c index 3ef2e99..e138f59 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -6,12 +6,6 @@ * (see COPYING for full license text) */ -/* This is needed for strcasestr to be defined by */ -#define _GNU_SOURCE 1 -#include - -#include - #include "cgit.h" #include "html.h" #include "ui-shared.h" @@ -26,7 +20,7 @@ time_t read_agefile(char *path) if (readfile(path, &buf, &size)) return -1; - if (parse_date(buf, buf2, sizeof(buf2))) + if (parse_date(buf, buf2, sizeof(buf2)) > 0) result = strtoul(buf2, NULL, 10); else result = 0; @@ -94,7 +88,7 @@ int is_in_url(struct cgit_repo *repo) void print_sort_header(const char *title, const char *sort) { - htmlf("