Avoid non-ANSI function declarations

Sparse says things like:

	warning: non-ANSI function declaration of function 'calc_ttl'

Signed-off-by: John Keeping <john@keeping.me.uk>
This commit is contained in:
John Keeping
2015-03-08 16:32:16 +00:00
committed by Jason A. Donenfeld
父節點 5150b7c1e6
當前提交 e3d3fffdd4
共有 9 個文件被更改,包括 25 次插入25 次删除

2
cgit.c
查看文件

@@ -1013,7 +1013,7 @@ static void cgit_parse_args(int argc, const char **argv)
}
}
static int calc_ttl()
static int calc_ttl(void)
{
if (!ctx.repo)
return ctx.cfg.cache_root_ttl;