diff options
author | Christian Hesse <mail@eworm.de> | 2019-01-02 17:25:01 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2019-06-05 15:37:49 +0200 |
commit | ccba7eb9d0c43ffe99178ab6632dc3794f887309 (patch) | |
tree | 9d9e8f8638ae2f18745afa802294828d9d92ab82 /ui-tree.c | |
parent | ui-shared: restrict to 15 levels (diff) | |
download | cgit-pink-ccba7eb9d0c43ffe99178ab6632dc3794f887309.tar.gz cgit-pink-ccba7eb9d0c43ffe99178ab6632dc3794f887309.zip |
global: make 'char *path' const where possible
Signed-off-by: Christian Hesse <mail@eworm.de>
Diffstat (limited to 'ui-tree.c')
-rw-r--r-- | ui-tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) html("</table>\n"); } -static void print_object(const struct object_id *oid, char *path, const char *basename, const char *rev) +static void print_object(const struct object_id *oid, const char *path, const char *basename, const char *rev) { enum object_type type; char *buf; @@ -279,7 +279,7 @@ static void ls_tail(void) cgit_print_layout_end(); } -static void ls_tree(const struct object_id *oid, char *path, struct walk_tree_context *walk_tree_ctx) +static void ls_tree(const struct object_id *oid, const char *path, struct walk_tree_context *walk_tree_ctx) { struct tree *tree; struct pathspec paths = { |