diff options
author | John Keeping | 2015-03-08 16:32:16 +0000 |
---|---|---|
committer | Jason A. Donenfeld | 2015-03-09 17:38:30 +0100 |
commit | e3d3fffdd447cdb4551549faae65bae5353a2cab (patch) | |
tree | 43ab1eaeeabf9269d0eebb64e64e957183f41b4d /ui-repolist.c | |
parent | 5150b7c1e69b4b09821e438006cfd77d82edae3b (diff) | |
download | cgit-e3d3fffdd447cdb4551549faae65bae5353a2cab.tar.gz cgit-e3d3fffdd447cdb4551549faae65bae5353a2cab.tar.bz2 cgit-e3d3fffdd447cdb4551549faae65bae5353a2cab.zip |
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>
Diffstat (limited to 'ui-repolist.c')
-rw-r--r-- | ui-repolist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui-repolist.c b/ui-repolist.c index e945f67..a6d0321 100644 --- a/ui-repolist.c +++ b/ui-repolist.c | |||
@@ -117,7 +117,7 @@ static void print_sort_header(const char *title, const char *sort) | |||
117 | htmlf("'>%s</a></th>", title); | 117 | htmlf("'>%s</a></th>", title); |
118 | } | 118 | } |
119 | 119 | ||
120 | static void print_header() | 120 | static void print_header(void) |
121 | { | 121 | { |
122 | html("<tr class='nohover'>"); | 122 | html("<tr class='nohover'>"); |
123 | print_sort_header("Name", "name"); | 123 | print_sort_header("Name", "name"); |
@@ -247,7 +247,7 @@ static int sort_repolist(char *field) | |||
247 | } | 247 | } |
248 | 248 | ||
249 | 249 | ||
250 | void cgit_print_repolist() | 250 | void cgit_print_repolist(void) |
251 | { | 251 | { |
252 | int i, columns = 3, hits = 0, header = 0; | 252 | int i, columns = 3, hits = 0, header = 0; |
253 | char *last_section = NULL; | 253 | char *last_section = NULL; |
@@ -344,7 +344,7 @@ void cgit_print_repolist() | |||
344 | cgit_print_docend(); | 344 | cgit_print_docend(); |
345 | } | 345 | } |
346 | 346 | ||
347 | void cgit_print_site_readme() | 347 | void cgit_print_site_readme(void) |
348 | { | 348 | { |
349 | if (!ctx.cfg.root_readme) | 349 | if (!ctx.cfg.root_readme) |
350 | return; | 350 | return; |