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:

committed by
Jason A. Donenfeld

父節點
5150b7c1e6
當前提交
e3d3fffdd4
@ -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;
|
||||
|
Reference in New Issue
Block a user