don't need casts
authorJohn Kohl <jtkohl@mit.edu>
Fri, 19 Oct 1990 11:36:35 +0000 (11:36 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Fri, 19 Oct 1990 11:36:35 +0000 (11:36 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1301 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/rd_req_dec.c

index ee19939cd04b6711193eabe7a70d45dc2bf0059c..b7b096d09a094ab94dd12d57354d4616e4edfc95 100644 (file)
@@ -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;
     }