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>
此提交包含在:
John Keeping
2016-01-19 19:33:01 +00:00
提交者 Jason A. Donenfeld
父節點 23f7dadaab
當前提交 57ea1aa2a5
共有 5 個檔案被更改,包括 9 行新增9 行删除

查看文件

@@ -79,7 +79,7 @@ static void print_modtime(struct cgit_repo *repo)
{
time_t t;
if (get_repo_modtime(repo, &t))
cgit_print_age(t, -1, NULL);
cgit_print_age(t, -1);
}
static int is_match(struct cgit_repo *repo)