From da014d55972f5addbf6b4360d3d8ed2ef4282170 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Sun, 5 Sep 2010 21:11:33 +0300 Subject: xz: Use an array instead of pointer for stdin_filename. Thanks Joerg Sonnenberger. --- src/xz/args.c | 2 +- src/xz/args.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/xz') diff --git a/src/xz/args.c b/src/xz/args.c index d28a3d40..4bd84a0c 100644 --- a/src/xz/args.c +++ b/src/xz/args.c @@ -25,7 +25,7 @@ bool opt_robot = false; // We don't modify or free() this, but we need to assign it in some // non-const pointers. -const char *const stdin_filename = "(stdin)"; +const char stdin_filename[] = "(stdin)"; /// Parse and set the memory usage limit for compression and/or decompression. diff --git a/src/xz/args.h b/src/xz/args.h index d01033c8..b23f4ef1 100644 --- a/src/xz/args.h +++ b/src/xz/args.h @@ -37,6 +37,6 @@ extern bool opt_keep_original; // extern bool opt_recursive; extern bool opt_robot; -extern const char *const stdin_filename; +extern const char stdin_filename[]; extern void args_parse(args_info *args, int argc, char **argv); -- cgit v1.2.3