diff options
author | John Keeping <john@keeping.me.uk> | 2015-03-08 19:32:16 +0300 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2015-03-09 19:38:30 +0300 |
commit | e3d3fffdd447cdb4551549faae65bae5353a2cab (patch) | |
tree | 43ab1eaeeabf9269d0eebb64e64e957183f41b4d /cgit.c | |
parent | 5150b7c1e69b4b09821e438006cfd77d82edae3b (diff) |
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 'cgit.c')
-rw-r--r-- | cgit.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1013,7 +1013,7 @@ static void cgit_parse_args(int argc, const char **argv) } } -static int calc_ttl() +static int calc_ttl(void) { if (!ctx.repo) return ctx.cfg.cache_root_ttl; |