summaryrefslogtreecommitdiffstats
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2026-04-02 00:15:12 -0400
committerJunio C Hamano <gitster@pobox.com>2026-04-01 22:08:53 -0700
commitc39512600f85aa88f368dc6bd13baeb183ae52ad (patch)
treea644f0caa2d0ad67f127baad43db6ed174140d37 /contrib/persistent-https
parentd3cd819e8bb21189b7bf3b2718898b610b85b119 (diff)
downloadgit-c39512600f85aa88f368dc6bd13baeb183ae52ad.tar.gz
git-c39512600f85aa88f368dc6bd13baeb183ae52ad.zip
range-diff: drop const to fix strstr() warnings
This is another case where we implicitly drop the "const" from a pointer by feeding it to strstr() and assigning the result to a non-const pointer. This is OK in practice, since the const pointer originally comes from a writable source (a strbuf), but C23 libc implementations have started to complain about it. We do write to the output pointer, so it needs to remain non-const. We can just switch the input pointer to also be non-const in this case. By itself that would run into problems with calls to skip_prefix(), but since that function has now been taught to match in/out constness automatically, it just works without us doing anything further. 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