]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
xz: Make args_info.files_name a const pointer.
authorLasse Collin <lasse.collin@tukaani.org>
Thu, 8 Dec 2022 17:24:22 +0000 (19:24 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Mon, 12 Dec 2022 13:53:03 +0000 (15:53 +0200)
src/xz/args.c
src/xz/args.h

index 7c327a5eb6f8987c2438010513651037c1c21268..b0d63d69d1382814be3272769786ddb8c6766cb5 100644 (file)
@@ -490,7 +490,7 @@ parse_real(args_info *args, int argc, char **argv)
                                                "or `--files0'."));
 
                        if (optarg == NULL) {
-                               args->files_name = (char *)stdin_filename;
+                               args->files_name = stdin_filename;
                                args->files_file = stdin;
                        } else {
                                args->files_name = optarg;
index 46a8e8edfc97803ec52f3d42e254befdc3e10a7d..a1a5930ae5b1fb944162699ed20850247493300a 100644 (file)
@@ -19,7 +19,7 @@ typedef struct {
 
        /// Name of the file from which to read filenames. This is NULL
        /// if --files or --files0 was not used.
-       char *files_name;
+       const char *files_name;
 
        /// File opened for reading from which filenames are read. This is
        /// non-NULL only if files_name is non-NULL.