summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2002-11-11 20:43:49 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:08:50 +0200
commitae7ec2aa32bbf8764c2c60bb51627c3314100e65 (patch)
treec5f2c6471b6b0b809cefd5ea8bbb7cbb5499ec78
parent1b58d3e4db6231ed830464d95e0f5819e863df03 (diff)
downloadexternal_gettext-ae7ec2aa32bbf8764c2c60bb51627c3314100e65.zip
external_gettext-ae7ec2aa32bbf8764c2c60bb51627c3314100e65.tar.gz
external_gettext-ae7ec2aa32bbf8764c2c60bb51627c3314100e65.tar.bz2
Avoid 'common' variable program_name.
-rw-r--r--tests/ChangeLog5
-rw-r--r--tests/tstgettext.c2
-rw-r--r--tests/tstngettext.c2
3 files changed, 7 insertions, 2 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog
index 07c7dfc..8050d31 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,3 +1,8 @@
+2002-11-11 Bruno Haible <bruno@clisp.org>
+
+ * tstgettext.c (program_name): Declare as external.
+ * tstngettext.c (program_name): Likewise.
+
2002-11-07 Bruno Haible <bruno@clisp.org>
* msgcmp-2: Filter out valgrind's messages from the stderr output.
diff --git a/tests/tstgettext.c b/tests/tstgettext.c
index e19b187..2cb102a 100644
--- a/tests/tstgettext.c
+++ b/tests/tstgettext.c
@@ -48,7 +48,7 @@ int add_newline;
int do_expand;
/* Name the program is called with. */
-const char *program_name;
+extern const char *program_name;
/* Long options. */
static const struct option long_options[] =
diff --git a/tests/tstngettext.c b/tests/tstngettext.c
index 4a2c677..669944b 100644
--- a/tests/tstngettext.c
+++ b/tests/tstngettext.c
@@ -39,7 +39,7 @@
#define _(str) gettext (str)
/* Name the program is called with. */
-char *program_name;
+extern const char *program_name;
/* Long options. */
static const struct option long_options[] =