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
parent 5150b7c1e6
commit e3d3fffdd4
9 changed files with 25 additions and 25 deletions

View file

@ -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;