]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix more handling of missing const type qualifiers
authorTobias Stoeckmann <tobias@stoeckmann.org>
Mon, 20 Apr 2026 15:41:52 +0000 (17:41 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Sat, 9 May 2026 10:21:27 +0000 (12:21 +0200)
Add missing const qualifier which otherwise triggers build errors
beginning with glibc 2.43.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
libarchive/archive_write_set_format_xar.c

index eb676e94726dbf91dc0a557a03e7ccd30ded3065..e7281d0b5965cae6c0d854b0106d23b748447d6a 100644 (file)
@@ -2272,7 +2272,7 @@ file_gen_utility_names(struct archive_write *a, struct file *file)
 static int
 get_path_component(char *name, int n, const char *fn)
 {
-       char *p;
+       const char *p;
        int l;
 
        p = strchr(fn, '/');