-rw-r--r-- | parsing.c | 6 | ||||
-rw-r--r-- | ui-shared.c | 4 |
2 files changed, 7 insertions, 3 deletions
@@ -221,3 +221,3 @@ struct commitinfo *cgit_parse_commit(struct commit *commit) | |||
221 | ret->author_email = substr(p, t); | 221 | ret->author_email = substr(p, t); |
222 | ret->author_date = atol(++t); | 222 | ret->author_date = atol(t+1); |
223 | p = strchr(t, '\n') + 1; | 223 | p = strchr(t, '\n') + 1; |
@@ -232,3 +232,3 @@ struct commitinfo *cgit_parse_commit(struct commit *commit) | |||
232 | ret->committer_email = substr(p, t); | 232 | ret->committer_email = substr(p, t); |
233 | ret->committer_date = atol(++t); | 233 | ret->committer_date = atol(t+1); |
234 | p = strchr(t, '\n') + 1; | 234 | p = strchr(t, '\n') + 1; |
@@ -317,3 +317,3 @@ struct taginfo *cgit_parse_tag(struct tag *tag) | |||
317 | ret->tagger_email = substr(p, t); | 317 | ret->tagger_email = substr(p, t); |
318 | ret->tagger_date = atol(++t); | 318 | ret->tagger_date = atol(t+1); |
319 | } | 319 | } |
diff --git a/ui-shared.c b/ui-shared.c index be2c75d..3e13c86 100644 --- a/ui-shared.c +++ b/ui-shared.c | |||
@@ -306,2 +306,4 @@ void cgit_print_date(time_t secs, char *format) | |||
306 | 306 | ||
307 | if (!secs) | ||
308 | return; | ||
307 | time = gmtime(&secs); | 309 | time = gmtime(&secs); |
@@ -315,2 +317,4 @@ void cgit_print_age(time_t t, time_t max_relative, char *format) | |||
315 | 317 | ||
318 | if (!t) | ||
319 | return; | ||
316 | time(&now); | 320 | time(&now); |