summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1999-04-14 16:05:33 +0000
committerTheodore Tso <tytso@mit.edu>1999-04-14 16:05:33 +0000
commite02b578ab64abb43f58cf84a659c2f354b400acb (patch)
tree062fa00afc504f4954e0663c7d69ee318ae06d3e /src
parent77c1652531da9d2e2d919a869c7e8466e5ef4b46 (diff)
downloadkrb5-e02b578ab64abb43f58cf84a659c2f354b400acb.tar.gz
krb5-e02b578ab64abb43f58cf84a659c2f354b400acb.tar.xz
krb5-e02b578ab64abb43f58cf84a659c2f354b400acb.zip
t_imp_name.c: Initialize display_file variable in main(), instead of
using a static initializer. (Needed for Linux/glibc 2.1) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11361 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/tests/gssapi/ChangeLog6
-rw-r--r--src/tests/gssapi/t_imp_name.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/src/tests/gssapi/ChangeLog b/src/tests/gssapi/ChangeLog
index 7e8d991cc..f546808d2 100644
--- a/src/tests/gssapi/ChangeLog
+++ b/src/tests/gssapi/ChangeLog
@@ -1,3 +1,9 @@
+1999-04-14 <tytso@rsts-11.mit.edu>
+
+ * t_imp_name.c: Initialize display_file variable in main(),
+ instead of using a static initializer. (Needed for
+ Linux/glibc 2.1)
+
1998-11-13 Theodore Ts'o <tytso@rsts-11.mit.edu>
* Makefile.in: Set the myfulldir and mydir variables (which are
diff --git a/src/tests/gssapi/t_imp_name.c b/src/tests/gssapi/t_imp_name.c
index d63faced3..182c37361 100644
--- a/src/tests/gssapi/t_imp_name.c
+++ b/src/tests/gssapi/t_imp_name.c
@@ -35,14 +35,16 @@ static void display_status_1();
static void display_buffer();
static int test_import_name();
-FILE *display_file = stdout;
+FILE *display_file;
int main(argc, argv)
int argc;
char **argv;
{
int retval;
-
+
+ display_file = stdout;
+
retval = test_import_name("host@dcl.mit.edu");
return retval;