mirror of
https://git.savannah.gnu.org/git/tar.git
synced 2026-04-25 19:10:46 +00:00
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:
@@ -182,7 +182,7 @@ getarg (char const *input, char const **endp, char **argbuf, idx_t *arglen)
|
||||
{
|
||||
if (input[0] == '{')
|
||||
{
|
||||
char *p = strchr (input + 1, '}');
|
||||
char const *p = strchr (input + 1, '}');
|
||||
if (p)
|
||||
{
|
||||
idx_t n = p - input;
|
||||
|
||||
Reference in New Issue
Block a user