From bd7f4d5a6493bcc1b4cf90a891aa689333d45a59 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Tue, 11 Sep 1990 16:15:10 +0000 Subject: [PATCH] remove unused addrs fix error code cast .msec in call to get time git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1120 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/mk_priv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/krb5/krb/mk_priv.c b/src/lib/krb5/krb/mk_priv.c index f9cc489e0..5aa92a3cd 100644 --- a/src/lib/krb5/krb/mk_priv.c +++ b/src/lib/krb5/krb/mk_priv.c @@ -58,19 +58,19 @@ OLDDECLARG(krb5_data *, outbuf) krb5_encrypt_block eblock; krb5_priv privmsg; krb5_priv_enc_part privmsg_enc_part; - krb5_address *addrs[2]; krb5_data *scratch; if (!valid_etype(etype)) - return KRB5KDC_ERR_ETYPE_NOSUPP; /* XXX */ + return KRB5_PROG_ETYPE_NOSUPP; privmsg.etype = etype; privmsg_enc_part.user_data = *userdata; privmsg_enc_part.s_address = sender_addr->address; privmsg_enc_part.r_address = recv_addr->address; + /* ms_timeofday returns signed msec, hence the cast */ if (retval = krb5_ms_timeofday(&privmsg_enc_part.timestamp, - &privmsg_enc_part.msec)) + (krb5_int16 *)&privmsg_enc_part.msec)) return retval; if (krb5_fulladdr_order(sender_addr, recv_addr) > 0) -- 2.26.2