summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-05-13 00:09:48 +0200
committerGünther Deschner <gd@samba.org>2011-05-13 00:11:41 +0200
commit18d3b85c4061d5c747da8333cf2711452185bb47 (patch)
tree9bc77611770665c513d594c08b3b8989c09d627c
parent7da530e1e42ab15152bc39d4edd4e9a10f091a22 (diff)
downloadsamba-18d3b85c4061d5c747da8333cf2711452185bb47.tar.gz
samba-18d3b85c4061d5c747da8333cf2711452185bb47.tar.bz2
samba-18d3b85c4061d5c747da8333cf2711452185bb47.zip
libcli/auth/krb5_wrap: correctly use discard_const().
Jeremy, please check. Guenther
-rw-r--r--libcli/auth/krb5_wrap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcli/auth/krb5_wrap.c b/libcli/auth/krb5_wrap.c
index d3392a3148..e7e071d484 100644
--- a/libcli/auth/krb5_wrap.c
+++ b/libcli/auth/krb5_wrap.c
@@ -205,8 +205,8 @@ krb5_error_code smb_krb5_unparse_name(TALLOC_CTX *mem_ctx,
for (i = 0; i < len1; i++) {
- p1 = krb5_princ_component(context, discard_const(krb5_principal, princ1), i);
- p2 = krb5_princ_component(context, discard_const(krb5_principal, princ2), i);
+ p1 = krb5_princ_component(context, (krb5_principal)discard_const(princ1), i);
+ p2 = krb5_princ_component(context, (krb5_principal)discard_const(princ2), i);
if (p1->length != p2->length || memcmp(p1->data, p2->data, p1->length))
return False;