summaryrefslogtreecommitdiffstats
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2026-04-02 00:14:49 -0400
committerJunio C Hamano <gitster@pobox.com>2026-04-01 22:08:50 -0700
commit2b9665c4e82a1a62d93a64e9892574d6e03ec019 (patch)
tree5e9c76466e8fb81a082da191b4f831f481598ff2 /contrib/persistent-https
parent270e10ad6dda3379ea0da7efd11e4fbf2cd7a325 (diff)
downloadgit-2b9665c4e82a1a62d93a64e9892574d6e03ec019.tar.gz
git-2b9665c4e82a1a62d93a64e9892574d6e03ec019.zip
convert: add const to fix strchr() warnings
C23 versions of libc (like recent glibc) may provide generic versions of strchr() that match constness between the input and return value. The idea being that the compiler can detect when it implicitly converts a const pointer into a non-const one (which then emits a warning). There are a few cases here where the result pointer does not need to be non-const at all, and we should mark it as such. That silences the warning (and avoids any potential problems with trying to write via those pointers). 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