summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.c12
-rw-r--r--cgit.h12
-rw-r--r--ui-blob.c2
-rw-r--r--ui-patch.c2
-rw-r--r--ui-repolist.c2
-rw-r--r--ui-snapshot.c3
6 files changed, 16 insertions, 17 deletions
diff --git a/cgit.c b/cgit.c
index d0f6905..a83f0be 100644
--- a/cgit.c
+++ b/cgit.c
@@ -83,3 +83,3 @@ char *find_default_branch(struct cgit_repo *repo)
83 83
84static void cgit_print_repo_page(struct cacheitem *item) 84static void cgit_print_repo_page()
85{ 85{
@@ -134,3 +134,3 @@ static void cgit_print_repo_page(struct cacheitem *item)
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),
@@ -142,3 +142,3 @@ static void cgit_print_repo_page(struct cacheitem *item)
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;
@@ -147,3 +147,3 @@ static void cgit_print_repo_page(struct cacheitem *item)
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;
@@ -212,5 +212,5 @@ static void cgit_fill_cache(struct cacheitem *item, int use_cache)
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
diff --git a/cgit.h b/cgit.h
index 8ab8e07..40e2d40 100644
--- a/cgit.h
+++ b/cgit.h
@@ -280,3 +280,3 @@ extern void cgit_print_tags(int maxcount);
280 280
281extern void cgit_print_repolist(struct cacheitem *item); 281extern void cgit_print_repolist();
282extern void cgit_print_summary(); 282extern void cgit_print_summary();
@@ -284,3 +284,3 @@ extern void cgit_print_log(const char *tip, int ofs, int cnt, char *grep,
284 char *pattern, char *path, int pager); 284 char *pattern, char *path, int pager);
285extern void cgit_print_blob(struct cacheitem *item, const char *hex, char *path); 285extern void cgit_print_blob(const char *hex, char *path);
286extern void cgit_print_tree(const char *rev, char *path); 286extern void cgit_print_tree(const char *rev, char *path);
@@ -290,6 +290,6 @@ extern void cgit_print_tag(char *revname);
290extern void cgit_print_diff(const char *new_hex, const char *old_hex, const char *prefix); 290extern void cgit_print_diff(const char *new_hex, const char *old_hex, const char *prefix);
291extern void cgit_print_patch(char *hex, struct cacheitem *item); 291extern void cgit_print_patch(char *hex);
292extern void cgit_print_snapshot(struct cacheitem *item, const char *head, 292extern void cgit_print_snapshot(const char *head, const char *hex,
293 const char *hex, const char *prefix, 293 const char *prefix, const char *filename,
294 const char *filename, int snapshot); 294 int snapshot);
295extern void cgit_print_snapshot_links(const char *repo, const char *head, 295extern void cgit_print_snapshot_links(const char *repo, const char *head,
diff --git a/ui-blob.c b/ui-blob.c
index bd44574..3b29132 100644
--- a/ui-blob.c
+++ b/ui-blob.c
@@ -11,3 +11,3 @@
11 11
12void cgit_print_blob(struct cacheitem *item, const char *hex, char *path) 12void cgit_print_blob(const char *hex, char *path)
13{ 13{
diff --git a/ui-patch.c b/ui-patch.c
index a77f3f6..68ebb15 100644
--- a/ui-patch.c
+++ b/ui-patch.c
@@ -71,3 +71,3 @@ static void filepair_cb(struct diff_filepair *pair)
71 71
72void cgit_print_patch(char *hex, struct cacheitem *item) 72void cgit_print_patch(char *hex)
73{ 73{
diff --git a/ui-repolist.c b/ui-repolist.c
index e663585..ad9b1bc 100644
--- a/ui-repolist.c
+++ b/ui-repolist.c
@@ -45,3 +45,3 @@ static void print_modtime(struct cgit_repo *repo)
45 45
46void cgit_print_repolist(struct cacheitem *item) 46void cgit_print_repolist()
47{ 47{
diff --git a/ui-snapshot.c b/ui-snapshot.c
index 4449803..c741469 100644
--- a/ui-snapshot.c
+++ b/ui-snapshot.c
@@ -71,4 +71,3 @@ static const struct snapshot_archive_t {
71 71
72void cgit_print_snapshot(struct cacheitem *item, const char *head, 72void cgit_print_snapshot(const char *head, const char *hex, const char *prefix,
73 const char *hex, const char *prefix,
74 const char *filename, int snapshots) 73 const char *filename, int snapshots)