summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Kohl <jtkohl@mit.edu>1990-10-19 11:36:35 +0000
committerJohn Kohl <jtkohl@mit.edu>1990-10-19 11:36:35 +0000
commitd9f33519e2fb69e94da9166a51655ce20fece168 (patch)
tree41997ef3ec24ec55d4d8c03cd6835f1bc2695ebb /src
parent254ac204863bfb55a39deffb24df99d6361aea48 (diff)
downloadkrb5-d9f33519e2fb69e94da9166a51655ce20fece168.tar.gz
krb5-d9f33519e2fb69e94da9166a51655ce20fece168.tar.xz
krb5-d9f33519e2fb69e94da9166a51655ce20fece168.zip
don't need casts
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1301 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/lib/krb5/krb/rd_req_dec.c7
1 files changed, 3 insertions, 4 deletions
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;
}