aboutsummaryrefslogtreecommitdiffstats
path: root/ui-refs.c
diff options
context:
space:
mode:
authorJohn Keeping <john@keeping.me.uk>2016-01-19 19:33:01 +0000
committerJason A. Donenfeld <Jason@zx2c4.com>2016-02-08 14:19:33 +0100
commit57ea1aa2a5eab7f6aba702b3366fe4dcc72124f6 (patch)
treec84c92e2a148de649cfb31d93384dbd28f1e2cee /ui-refs.c
parent23f7dadaaba2817c92c42c0a642a3186aa8ef24d (diff)
downloadcgit-57ea1aa2a5eab7f6aba702b3366fe4dcc72124f6.tar.gz
cgit-57ea1aa2a5eab7f6aba702b3366fe4dcc72124f6.tar.bz2
cgit-57ea1aa2a5eab7f6aba702b3366fe4dcc72124f6.zip
ui-shared: remove "format" from cgit_print_age()
We never use any format other than FMT_SHORTDATE, so move that into the function. Signed-off-by: John Keeping <john@keeping.me.uk>
Diffstat (limited to 'ui-refs.c')
-rw-r--r--ui-refs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui-refs.c b/ui-refs.c
index 295a4c7..0652b89 100644
--- a/ui-refs.c
+++ b/ui-refs.c
@@ -73,7 +73,7 @@ static int print_branch(struct refinfo *ref)
html_txt(info->author);
cgit_close_filter(ctx.repo->email_filter);
html("</td><td colspan='2'>");
- cgit_print_age(info->commit->date, -1, NULL);
+ cgit_print_age(info->commit->date, -1);
} else {
html("</td><td></td><td>");
cgit_object_link(ref->object);
@@ -161,9 +161,9 @@ static int print_tag(struct refinfo *ref)
html("</td><td colspan='2'>");
if (info) {
if (info->tagger_date > 0)
- cgit_print_age(info->tagger_date, -1, NULL);
+ cgit_print_age(info->tagger_date, -1);
} else if (ref->object->type == OBJ_COMMIT) {
- cgit_print_age(ref->commit->commit->date, -1, NULL);
+ cgit_print_age(ref->commit->commit->date, -1);
}
html("</td></tr>\n");