]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.c
ui-shared: currenturl should take into account leading slash
[ps-cgit] / cgit.c
diff --git a/cgit.c b/cgit.c
index 0ad81716f17b3b5bf903e497aaaa4131134ed96a..c16ed8c4885402970e535e1181a59fdd30d64382 100644 (file)
--- a/cgit.c
+++ b/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;