From ae7ec2aa32bbf8764c2c60bb51627c3314100e65 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 11 Nov 2002 20:43:49 +0000 Subject: Avoid 'common' variable program_name. --- tests/ChangeLog | 5 +++++ tests/tstgettext.c | 2 +- tests/tstngettext.c | 2 +- 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 + + * tstgettext.c (program_name): Declare as external. + * tstngettext.c (program_name): Likewise. + 2002-11-07 Bruno Haible * 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[] = -- cgit v1.1