1
0
의 미러 https://git.tukaani.org/xz.git synced 2025-06-30 17:36:36 +00:00

xz: Make args_info.files_name a const pointer.

This commit is contained in:
Lasse Collin 2022-12-08 19:24:22 +02:00
부모 4af80d4f51
커밋 59a17888e9
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제

파일 보기

@ -490,7 +490,7 @@ parse_real(args_info *args, int argc, char **argv)
"or `--files0'.")); "or `--files0'."));
if (optarg == NULL) { if (optarg == NULL) {
args->files_name = (char *)stdin_filename; args->files_name = stdin_filename;
args->files_file = stdin; args->files_file = stdin;
} else { } else {
args->files_name = optarg; args->files_name = optarg;

파일 보기

@ -19,7 +19,7 @@ typedef struct {
/// Name of the file from which to read filenames. This is NULL /// Name of the file from which to read filenames. This is NULL
/// if --files or --files0 was not used. /// 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 /// File opened for reading from which filenames are read. This is
/// non-NULL only if files_name is non-NULL. /// non-NULL only if files_name is non-NULL.