X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/9735835c0e9f2c4a0caf5a431fc455d5855472aa..c8ea73caabcb16ffb74baa70d35650027ed772c4:/ui-repolist.c?ds=inline diff --git a/ui-repolist.c b/ui-repolist.c index 0a0b6ca..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;