From 5a0f900569f421422bd7511a45c7346c7668e710 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 4 May 2026 23:03:22 +0200 Subject: global: fix libc constness warnings Signed-off-by: Jason A. Donenfeld --- ui-plain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui-plain.c') 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; -- cgit v1.2.3