diff options
author | John Keeping <john@keeping.me.uk> | 2015-03-08 16:32:16 +0000 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2015-03-09 17:38:30 +0100 |
commit | e3d3fffdd447cdb4551549faae65bae5353a2cab (patch) | |
tree | 43ab1eaeeabf9269d0eebb64e64e957183f41b4d /ui-refs.c | |
parent | Makefile: add a target to run CGit through sparse (diff) | |
download | cgit-pink-e3d3fffdd447cdb4551549faae65bae5353a2cab.tar.gz cgit-pink-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 '')
-rw-r--r-- | ui-refs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui-refs.c b/ui-refs.c index ac8a6d4..d3d71dd 100644 --- a/ui-refs.c +++ b/ui-refs.c @@ -82,7 +82,7 @@ static int print_branch(struct refinfo *ref) return 0; } -static void print_tag_header() +static void print_tag_header(void) { html("<tr class='nohover'><th class='left'>Tag</th>" "<th class='left'>Download</th>" @@ -234,7 +234,7 @@ void cgit_print_tags(int maxcount) cgit_free_reflist_inner(&list); } -void cgit_print_refs() +void cgit_print_refs(void) { html("<table class='list nowrap'>"); |