summaryrefslogtreecommitdiffstats
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2026-04-02 00:14:51 -0400
committerJunio C Hamano <gitster@pobox.com>2026-04-01 22:08:50 -0700
commit2fb6a18782ff8f2d97b44c8812f9027f3812f970 (patch)
treeced4a8620ced5f2cd6650ff1d45441df0c620216 /contrib/persistent-https
parent2b9665c4e82a1a62d93a64e9892574d6e03ec019 (diff)
downloadgit-2fb6a18782ff8f2d97b44c8812f9027f3812f970.tar.gz
git-2fb6a18782ff8f2d97b44c8812f9027f3812f970.zip
http: add const to fix strchr() warnings
The "path" field of a "struct repo" (a custom http-push struct, not to be confused with "struct repository) is a pointer into a const argv string, and is never written to. The compiler does not traditionally complain about assigning from a const pointer because it happens via strchr(). But with some C23 libc versions (notably recent glibc), it has started to do so. Let's mark the field as const to silence the warnings. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions