]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'cf/c23-const-preserving-strchr-updates-0'
authorJunio C Hamano <gitster@pobox.com>
Fri, 13 Feb 2026 21:39:24 +0000 (13:39 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 13 Feb 2026 21:39:25 +0000 (13:39 -0800)
ISO C23 redefines strchr and friends that tradiotionally took
a const pointer and returned a non-const pointer derived from it to
preserve constness (i.e., if you ask for a substring in a const
string, you get a const pointer to the substring).  Update code
paths that used non-const pointer to receive their results that did
not have to be non-const to adjust.

* cf/c23-const-preserving-strchr-updates-0:
  gpg-interface: remove an unnecessary NULL initialization
  global: constify some pointers that are not written to

1  2 
add-patch.c
builtin/receive-pack.c
diff.c
help.c
string-list.c

diff --cc add-patch.c
Simple merge
Simple merge
diff --cc diff.c
Simple merge
diff --cc help.c
Simple merge
diff --cc string-list.c
Simple merge