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 次删除

查看文件

@ -117,7 +117,7 @@ static void print_sort_header(const char *title, const char *sort)
htmlf("'>%s</a></th>", title);
}
static void print_header()
static void print_header(void)
{
html("<tr class='nohover'>");
print_sort_header("Name", "name");
@ -247,7 +247,7 @@ static int sort_repolist(char *field)
}
void cgit_print_repolist()
void cgit_print_repolist(void)
{
int i, columns = 3, hits = 0, header = 0;
char *last_section = NULL;
@ -344,7 +344,7 @@ void cgit_print_repolist()
cgit_print_docend();
}
void cgit_print_site_readme()
void cgit_print_site_readme(void)
{
if (!ctx.cfg.root_readme)
return;