mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
xz: Make args_info.files_name a const pointer.
This commit is contained in:
parent
bc665b84ea
commit
01b3549e52
2 changed files with 2 additions and 2 deletions
|
@ -520,7 +520,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;
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue