about summary refs log tree commit diff stats
path: root/ui-shared.c
diff options
context:
space:
mode:
authorJohn Keeping2016-01-19 19:33:01 +0000
committerJason A. Donenfeld2016-02-08 14:19:33 +0100
commit57ea1aa2a5eab7f6aba702b3366fe4dcc72124f6 (patch)
treec84c92e2a148de649cfb31d93384dbd28f1e2cee /ui-shared.c
parentui-tree: put reverse path in title (diff)
downloadcgit-57ea1aa2a5eab7f6aba702b3366fe4dcc72124f6.tar.gz
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-shared.c')
-rw-r--r--ui-shared.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui-shared.c b/ui-shared.c index 54bbde7..76aac60 100644 --- a/ui-shared.c +++ b/ui-shared.c
@@ -635,7 +635,7 @@ static void print_rel_date(time_t t, double value,
635 htmlf("'>%.0f %s</span>", value, suffix); 635 htmlf("'>%.0f %s</span>", value, suffix);
636} 636}
637 637
638void cgit_print_age(time_t t, time_t max_relative, const char *format) 638void cgit_print_age(time_t t, time_t max_relative)
639{ 639{
640 time_t now, secs; 640 time_t now, secs;
641 641
@@ -650,7 +650,7 @@ void cgit_print_age(time_t t, time_t max_relative, const char *format)
650 html("<span title='"); 650 html("<span title='");
651 html_attr(fmt_date(t, FMT_LONGDATE, ctx.cfg.local_time)); 651 html_attr(fmt_date(t, FMT_LONGDATE, ctx.cfg.local_time));
652 html("'>"); 652 html("'>");
653 cgit_print_date(t, format, ctx.cfg.local_time); 653 cgit_print_date(t, FMT_SHORTDATE, ctx.cfg.local_time);
654 html("</span>"); 654 html("</span>");
655 return; 655 return;
656 } 656 }