From: Tom Yu Date: Thu, 25 Jan 1996 01:54:53 +0000 (+0000) Subject: * pname_to_uid.c (krb5_pname_to_uid): Changed def'n of X-Git-Tag: krb5-1.0-beta6~572 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3b377ecbf084574aa215f1d9d7f655d2bd3b5f77;p=krb5.git * 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 --- 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