Port to C23 qualifier-generic fns like strchr

* src/checkpoint.c (getarg):
* src/tar.c (expand_pax_option):
Const-qualify results of strchr etc. if args are const-qualified.
This commit is contained in:
Paul Eggert
2025-11-23 09:51:31 -08:00
parent 28556dddae
commit db65c2dd68
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1285,7 +1285,7 @@ expand_pax_option (struct tar_args *targs, const char *arg)
while (*arg)
{
idx_t seglen = strcspn (arg, ",");
char *p = memchr (arg, '=', seglen);
char const *p = memchr (arg, '=', seglen);
if (p)
{
idx_t len = p - arg + 1;