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>
Este commit está contenido en:
cometido por
Jason A. Donenfeld
padre
5150b7c1e6
commit
e3d3fffdd4
2
cgit.c
2
cgit.c
@@ -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;
|
||||
|
||||
Referencia en una nueva incidencia
Block a user