From e0404ed5b1c24d11789a63df4ef228b40d5f0b9f Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Sat, 25 Mar 1995 19:57:07 +0000 Subject: [PATCH] * scc_gennew.c: Ultrix cc (and K&R compilers) doesn't deal with automatic aggregate initialization, so fixed scc_fvno usage. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5247 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/ccache/stdio/ChangeLog | 5 +++++ src/lib/krb5/ccache/stdio/scc_gennew.c | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/lib/krb5/ccache/stdio/ChangeLog b/src/lib/krb5/ccache/stdio/ChangeLog index fea5c2a92..909aa5c22 100644 --- a/src/lib/krb5/ccache/stdio/ChangeLog +++ b/src/lib/krb5/ccache/stdio/ChangeLog @@ -1,3 +1,8 @@ +Sat Mar 25 14:42:37 1995 Tom Yu (tlyu@dragons-lair) + + * scc_gennew.c: Ultrix cc (and K&R compilers) doesn't deal with + automatic aggregate initialization, so fixed scc_fvno usage. + Fri Mar 17 19:24:05 1995 John Gilmore (gnu at toad.com) * scc_errs.c: Mac doesn't have EISDIR error. diff --git a/src/lib/krb5/ccache/stdio/scc_gennew.c b/src/lib/krb5/ccache/stdio/scc_gennew.c index b5f5cab4c..0172f4d1e 100644 --- a/src/lib/krb5/ccache/stdio/scc_gennew.c +++ b/src/lib/krb5/ccache/stdio/scc_gennew.c @@ -95,9 +95,10 @@ krb5_scc_generate_new (context, id) retcode = krb5_scc_interpret (context, errno); goto err_out; } else { - unsigned char scc_fvno[2] = { - (unsigned char) (KRB5_SCC_DEFAULT_FVNO >> 8), - (unsigned char) (KRB5_SCC_DEFAULT_FVNO & 0xFF)}; + unsigned char scc_fvno[2]; + + scc_fvno[0] = (unsigned char) (KRB5_SCC_DEFAULT_FVNO >> 8); + scc_fvno[1] = (unsigned char) (KRB5_SCC_DEFAULT_FVNO & 0xFF); if (!fwrite((char *)scc_fvno, sizeof(scc_fvno), 1, f)) { retcode = krb5_scc_interpret(context, errno); -- 2.26.2