Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.zx2c4.com/cgit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2026-05-05 00:03:22 +0300
committerJason A. Donenfeld <Jason@zx2c4.com>2026-05-05 00:03:51 +0300
commit5a0f900569f421422bd7511a45c7346c7668e710 (patch)
tree111f377a9925e7ba5dcc39c10d691c9a240b8114 /ui-plain.c
parent44ca1d1ec8eee7f4440fbfd613fc1072a14b441c (diff)
global: fix libc constness warnings
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui-plain.c')
-rw-r--r--ui-plain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui-plain.c b/ui-plain.c
index 0301439..a2a4087 100644
--- a/ui-plain.c
+++ b/ui-plain.c
@@ -157,7 +157,7 @@ static int walk_tree(const struct object_id *oid, struct strbuf *base,
static int basedir_len(const char *path)
{
- char *p = strrchr(path, '/');
+ const char *p = strrchr(path, '/');
if (p)
return p - path + 1;
return 0;