diff options
-rw-r--r-- | ui-atom.c | 2 | ||||
-rw-r--r-- | ui-atom.h | 2 | ||||
-rw-r--r-- | ui-log.c | 2 | ||||
-rw-r--r-- | ui-log.h | 2 | ||||
-rw-r--r-- | ui-refs.c | 2 | ||||
-rw-r--r-- | ui-repolist.c | 2 | ||||
-rw-r--r-- | ui-summary.c | 2 | ||||
-rw-r--r-- | ui-summary.h | 2 | ||||
-rw-r--r-- | ui-tree.c | 4 |
9 files changed, 10 insertions, 10 deletions
diff --git a/ui-atom.c b/ui-atom.c index 3866823..cd66f82 100644 --- a/ui-atom.c +++ b/ui-atom.c | |||
@@ -83,7 +83,7 @@ static void add_entry(struct commit *commit, const char *host) | |||
83 | } | 83 | } |
84 | 84 | ||
85 | 85 | ||
86 | void cgit_print_atom(char *tip, char *path, int max_count) | 86 | void cgit_print_atom(char *tip, const char *path, int max_count) |
87 | { | 87 | { |
88 | char *host; | 88 | char *host; |
89 | const char *argv[] = {NULL, tip, NULL, NULL, NULL}; | 89 | const char *argv[] = {NULL, tip, NULL, NULL, NULL}; |
diff --git a/ui-atom.h b/ui-atom.h index 749ffd3..dda953b 100644 --- a/ui-atom.h +++ b/ui-atom.h | |||
@@ -1,6 +1,6 @@ | |||
1 | #ifndef UI_ATOM_H | 1 | #ifndef UI_ATOM_H |
2 | #define UI_ATOM_H | 2 | #define UI_ATOM_H |
3 | 3 | ||
4 | extern void cgit_print_atom(char *tip, char *path, int max_count); | 4 | extern void cgit_print_atom(char *tip, const char *path, int max_count); |
5 | 5 | ||
6 | #endif | 6 | #endif |
diff --git a/ui-log.c b/ui-log.c index 3bcb657..8c65425 100644 --- a/ui-log.c +++ b/ui-log.c | |||
@@ -362,7 +362,7 @@ static char *next_token(char **src) | |||
362 | } | 362 | } |
363 | 363 | ||
364 | void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern, | 364 | void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern, |
365 | char *path, int pager, int commit_graph, int commit_sort) | 365 | const char *path, int pager, int commit_graph, int commit_sort) |
366 | { | 366 | { |
367 | struct rev_info rev; | 367 | struct rev_info rev; |
368 | struct commit *commit; | 368 | struct commit *commit; |
diff --git a/ui-log.h b/ui-log.h index d324c92..325607c 100644 --- a/ui-log.h +++ b/ui-log.h | |||
@@ -2,7 +2,7 @@ | |||
2 | #define UI_LOG_H | 2 | #define UI_LOG_H |
3 | 3 | ||
4 | extern void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, | 4 | extern void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, |
5 | char *pattern, char *path, int pager, | 5 | char *pattern, const char *path, int pager, |
6 | int commit_graph, int commit_sort); | 6 | int commit_graph, int commit_sort); |
7 | extern void show_commit_decorations(struct commit *commit); | 7 | extern void show_commit_decorations(struct commit *commit); |
8 | 8 | ||
diff --git a/ui-refs.c b/ui-refs.c index 2ec3858..456f610 100644 --- a/ui-refs.c +++ b/ui-refs.c | |||
@@ -136,7 +136,7 @@ static int print_tag(struct refinfo *ref) | |||
136 | return 0; | 136 | return 0; |
137 | } | 137 | } |
138 | 138 | ||
139 | static void print_refs_link(char *path) | 139 | static void print_refs_link(const char *path) |
140 | { | 140 | { |
141 | html("<tr class='nohover'><td colspan='5'>"); | 141 | html("<tr class='nohover'><td colspan='5'>"); |
142 | cgit_refs_link("[...]", NULL, NULL, ctx.qry.head, NULL, path); | 142 | cgit_refs_link("[...]", NULL, NULL, ctx.qry.head, NULL, path); |
diff --git a/ui-repolist.c b/ui-repolist.c index 41424c0..7cf7638 100644 --- a/ui-repolist.c +++ b/ui-repolist.c | |||
@@ -11,7 +11,7 @@ | |||
11 | #include "html.h" | 11 | #include "html.h" |
12 | #include "ui-shared.h" | 12 | #include "ui-shared.h" |
13 | 13 | ||
14 | static time_t read_agefile(char *path) | 14 | static time_t read_agefile(const char *path) |
15 | { | 15 | { |
16 | time_t result; | 16 | time_t result; |
17 | size_t size; | 17 | size_t size; |
diff --git a/ui-summary.c b/ui-summary.c index 8e81ac4..947812a 100644 --- a/ui-summary.c +++ b/ui-summary.c | |||
@@ -99,7 +99,7 @@ static char* append_readme_path(const char *filename, const char *ref, const cha | |||
99 | return full_path; | 99 | return full_path; |
100 | } | 100 | } |
101 | 101 | ||
102 | void cgit_print_repo_readme(char *path) | 102 | void cgit_print_repo_readme(const char *path) |
103 | { | 103 | { |
104 | char *filename, *ref, *mimetype; | 104 | char *filename, *ref, *mimetype; |
105 | int free_filename = 0; | 105 | int free_filename = 0; |
diff --git a/ui-summary.h b/ui-summary.h index 0896650..cba696a 100644 --- a/ui-summary.h +++ b/ui-summary.h | |||
@@ -2,6 +2,6 @@ | |||
2 | #define UI_SUMMARY_H | 2 | #define UI_SUMMARY_H |
3 | 3 | ||
4 | extern void cgit_print_summary(void); | 4 | extern void cgit_print_summary(void); |
5 | extern void cgit_print_repo_readme(char *path); | 5 | extern void cgit_print_repo_readme(const char *path); |
6 | 6 | ||
7 | #endif /* UI_SUMMARY_H */ | 7 | #endif /* UI_SUMMARY_H */ |
diff --git a/ui-tree.c b/ui-tree.c index df8ad82..314ac52 100644 --- a/ui-tree.c +++ b/ui-tree.c | |||
@@ -84,7 +84,7 @@ static void print_binary_buffer(char *buf, unsigned long size) | |||
84 | html("</table>\n"); | 84 | html("</table>\n"); |
85 | } | 85 | } |
86 | 86 | ||
87 | static void print_object(const struct object_id *oid, char *path, const char *basename, const char *rev) | 87 | static void print_object(const struct object_id *oid, const char *path, const char *basename, const char *rev) |
88 | { | 88 | { |
89 | enum object_type type; | 89 | enum object_type type; |
90 | char *buf; | 90 | char *buf; |
@@ -279,7 +279,7 @@ static void ls_tail(void) | |||
279 | cgit_print_layout_end(); | 279 | cgit_print_layout_end(); |
280 | } | 280 | } |
281 | 281 | ||
282 | static void ls_tree(const struct object_id *oid, char *path, struct walk_tree_context *walk_tree_ctx) | 282 | static void ls_tree(const struct object_id *oid, const char *path, struct walk_tree_context *walk_tree_ctx) |
283 | { | 283 | { |
284 | struct tree *tree; | 284 | struct tree *tree; |
285 | struct pathspec paths = { | 285 | struct pathspec paths = { |