diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>
committerJason A. Donenfeld <Jason@zx2c4.com>
commit
parent
tree
download
global: fix libc constness warnings
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--ui-plain.c2
1 file changed, 1 insertion, 1 deletion
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;