From: John Kohl Date: Fri, 19 Oct 1990 11:36:35 +0000 (+0000) Subject: don't need casts X-Git-Tag: krb5-1.0-alpha2~110 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d9f33519e2fb69e94da9166a51655ce20fece168;p=krb5.git don't need casts git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1301 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/rd_req_dec.c b/src/lib/krb5/krb/rd_req_dec.c index ee19939cd..b7b096d09 100644 --- a/src/lib/krb5/krb/rd_req_dec.c +++ b/src/lib/krb5/krb/rd_req_dec.c @@ -75,8 +75,7 @@ krb5_tkt_authent *tktauthent; krb5_timestamp currenttime; - if (!krb5_principal_compare(server, - (krb5_const_principal) req->ticket->server)) + if (!krb5_principal_compare(server, req->ticket->server)) return KRB5KRB_AP_WRONG_PRINC; /* if (req->ap_options & AP_OPTS_USE_SESSION_KEY) @@ -123,8 +122,8 @@ krb5_tkt_authent *tktauthent; } #define clean_authenticator() {(void) krb5_free_authenticator(tktauthent->authenticator); tktauthent->authenticator = 0;} - if (!krb5_principal_compare((krb5_const_principal)tktauthent->authenticator->client, - (krb5_const_principal)req->ticket->enc_part2->client)) { + if (!krb5_principal_compare(tktauthent->authenticator->client, + req->ticket->enc_part2->client)) { clean_authenticator(); return KRB5KRB_AP_ERR_BADMATCH; }