|
diff --git a/cgit.c b/cgit.c index d0f6905..a83f0be 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -82,5 +82,5 @@ char *find_default_branch(struct cgit_repo *repo) |
82 | } |
82 | } |
83 | |
83 | |
84 | static void cgit_print_repo_page(struct cacheitem *item) |
84 | static void cgit_print_repo_page() |
85 | { |
85 | { |
86 | char *tmp; |
86 | char *tmp; |
@@ -133,5 +133,5 @@ static void cgit_print_repo_page(struct cacheitem *item) |
133 | |
133 | |
134 | if ((cgit_cmd == CMD_SNAPSHOT) && ctx.repo->snapshots) { |
134 | if ((cgit_cmd == CMD_SNAPSHOT) && ctx.repo->snapshots) { |
135 | cgit_print_snapshot(item, ctx.qry.head, ctx.qry.sha1, |
135 | cgit_print_snapshot(ctx.qry.head, ctx.qry.sha1, |
136 | cgit_repobasename(ctx.repo->url), |
136 | cgit_repobasename(ctx.repo->url), |
137 | ctx.qry.path, |
137 | ctx.qry.path, |
@@ -141,10 +141,10 @@ static void cgit_print_repo_page(struct cacheitem *item) |
141 | |
141 | |
142 | if (cgit_cmd == CMD_PATCH) { |
142 | if (cgit_cmd == CMD_PATCH) { |
143 | cgit_print_patch(ctx.qry.sha1, item); |
143 | cgit_print_patch(ctx.qry.sha1); |
144 | return; |
144 | return; |
145 | } |
145 | } |
146 | |
146 | |
147 | if (cgit_cmd == CMD_BLOB) { |
147 | if (cgit_cmd == CMD_BLOB) { |
148 | cgit_print_blob(item, ctx.qry.sha1, ctx.qry.path); |
148 | cgit_print_blob(ctx.qry.sha1, ctx.qry.path); |
149 | return; |
149 | return; |
150 | } |
150 | } |
@@ -211,7 +211,7 @@ static void cgit_fill_cache(struct cacheitem *item, int use_cache) |
211 | ctx.page.expires = ctx.page.modified + ttl_seconds(item->ttl); |
211 | ctx.page.expires = ctx.page.modified + ttl_seconds(item->ttl); |
212 | if (ctx.repo) |
212 | if (ctx.repo) |
213 | cgit_print_repo_page(item); |
213 | cgit_print_repo_page(); |
214 | else |
214 | else |
215 | cgit_print_repolist(item); |
215 | cgit_print_repolist(); |
216 | |
216 | |
217 | if (use_cache) { |
217 | if (use_cache) { |
|