From 3b377ecbf084574aa215f1d9d7f655d2bd3b5f77 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Thu, 25 Jan 1996 01:54:53 +0000 Subject: [PATCH] * pname_to_uid.c (krb5_pname_to_uid): Changed def'n of krb5principalname to static so K&R compilers won't lose on automatic aggregate initialization. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7377 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/krb5/ChangeLog | 6 ++++++ src/lib/gssapi/krb5/pname_to_uid.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/lib/gssapi/krb5/ChangeLog b/src/lib/gssapi/krb5/ChangeLog index 7b17f55fd..17e217c76 100644 --- a/src/lib/gssapi/krb5/ChangeLog +++ b/src/lib/gssapi/krb5/ChangeLog @@ -1,3 +1,9 @@ +Wed Jan 24 20:46:37 1996 Tom Yu + + * pname_to_uid.c (krb5_pname_to_uid): Changed def'n of + krb5principalname to static so K&R compilers won't lose on + automatic aggregate initialization. + Wed Jan 24 13:21:37 1996 Theodore Y. Ts'o * import_name.c (krb5_gss_import_name): Don't assume that the diff --git a/src/lib/gssapi/krb5/pname_to_uid.c b/src/lib/gssapi/krb5/pname_to_uid.c index 8cd20d23a..bc7d88a93 100644 --- a/src/lib/gssapi/krb5/pname_to_uid.c +++ b/src/lib/gssapi/krb5/pname_to_uid.c @@ -28,8 +28,8 @@ uid_t * uid; struct passwd *pw; char *pname_copy, *prefix, *suffix, *default_realm = NULL, *temp; - unsigned char krb5principalname[] = - {"\052\206\110\206\367\022\001\002\002\001"}; + static unsigned char krb5principalname[] = + {"\052\206\110\206\367\022\001\002\002\001"}; /* * check that the name_type is the Kerberos Principal Name form -- 2.26.2