From: Bruno Haible Date: Mon, 11 Nov 2002 20:43:49 +0000 (+0000) Subject: Avoid 'common' variable program_name. X-Git-Tag: v0.12~1219 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae7ec2aa32bbf8764c2c60bb51627c3314100e65;p=thirdparty%2Fgettext.git Avoid 'common' variable program_name. --- diff --git a/tests/ChangeLog b/tests/ChangeLog index 07c7dfcf8..8050d31ac 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 e19b18739..2cb102a6d 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 4a2c6774e..669944b25 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[] =