-rw-r--r-- | ui-repolist.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/ui-repolist.c b/ui-repolist.c index 573c730..e5c6c20 100644 --- a/ui-repolist.c +++ b/ui-repolist.c | |||
@@ -9,17 +9,16 @@ | |||
9 | #include "cgit.h" | 9 | #include "cgit.h" |
10 | #include <time.h> | 10 | #include <time.h> |
11 | 11 | ||
12 | 12 | ||
13 | time_t read_agefile(char *path) | 13 | time_t read_agefile(char *path) |
14 | { | 14 | { |
15 | FILE *f; | 15 | FILE *f; |
16 | static char buf[64], buf2[64]; | 16 | static char buf[64], buf2[64]; |
17 | struct tm tm; | ||
18 | 17 | ||
19 | if (!(f = fopen(path, "r"))) | 18 | if (!(f = fopen(path, "r"))) |
20 | return -1; | 19 | return -1; |
21 | fgets(buf, sizeof(buf), f); | 20 | fgets(buf, sizeof(buf), f); |
22 | fclose(f); | 21 | fclose(f); |
23 | if (parse_date(buf, buf2, sizeof(buf2))) | 22 | if (parse_date(buf, buf2, sizeof(buf2))) |
24 | return strtoul(buf2, NULL, 10); | 23 | return strtoul(buf2, NULL, 10); |
25 | else | 24 | else |