summaryrefslogtreecommitdiffstats
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2026-01-19 00:19:45 -0500
committerJunio C Hamano <gitster@pobox.com>2026-01-19 16:24:02 -0800
commit9500b2131d29960d3fbd35559c063f7a74568875 (patch)
tree4584c035d755173030a0684a5aa537c28385f40d /contrib/persistent-https
parent9a2fb147f2c61d0cab52c883e7e26f5b7948e3ed (diff)
downloadgit-9500b2131d29960d3fbd35559c063f7a74568875.tar.gz
git-9500b2131d29960d3fbd35559c063f7a74568875.zip
remote: return non-const pointer from error_buf()
We have an error_buf() helper that functions a bit like our error() helper, but returns NULL instead of -1. Its return type is "const char *", but this is overly restrictive. If we use the helper in a function that returns non-const "char *", the compiler will complain about the implicit cast from const to non-const. Meanwhile, the const in the helper is doing nothing useful, as it only ever returns NULL. Let's drop the const, which will let us use it in both types of function. 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