1
0

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>
Dieser Commit ist enthalten in:
John Keeping
2015-03-08 16:32:16 +00:00
committet von Jason A. Donenfeld
Ursprung 5150b7c1e6
Commit e3d3fffdd4
9 geänderte Dateien mit 25 neuen und 25 gelöschten Zeilen

2
cgit.c
Datei anzeigen

@ -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;