Module: wine Branch: master Commit: 906ca7058337a1e250f48477ef7530d6fe272914 URL: http://source.winehq.org/git/wine.git/?a=commit;h=906ca7058337a1e250f48477ef...
Author: Hans Leidekker hans@it.vu.nl Date: Thu Oct 5 15:37:39 2006 +0200
wldap32: Cast-qual warnings fix.
---
dlls/wldap32/bind.c | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/dlls/wldap32/bind.c b/dlls/wldap32/bind.c index 39bd221..0196d16 100644 --- a/dlls/wldap32/bind.c +++ b/dlls/wldap32/bind.c @@ -303,6 +303,7 @@ ULONG CDECL ldap_sasl_bindW( WLDAP32_LDA #ifdef HAVE_LDAP char *dnU, *mechanismU = NULL; LDAPControl **serverctrlsU = NULL, **clientctrlsU = NULL; + struct berval credU;
ret = WLDAP32_LDAP_NO_MEMORY;
@@ -327,7 +328,10 @@ #ifdef HAVE_LDAP if (!clientctrlsU) goto exit; }
- ret = ldap_sasl_bind( ld, dnU, mechanismU, (struct berval *)cred, + credU.bv_len = cred->bv_len; + credU.bv_val = cred->bv_val; + + ret = ldap_sasl_bind( ld, dnU, mechanismU, &credU, serverctrlsU, clientctrlsU, message );
exit: @@ -419,6 +423,7 @@ ULONG CDECL ldap_sasl_bind_sW( WLDAP32_L #ifdef HAVE_LDAP char *dnU, *mechanismU = NULL; LDAPControl **serverctrlsU = NULL, **clientctrlsU = NULL; + struct berval credU;
ret = WLDAP32_LDAP_NO_MEMORY;
@@ -443,7 +448,10 @@ #ifdef HAVE_LDAP if (!clientctrlsU) goto exit; }
- ret = ldap_sasl_bind_s( ld, dnU, mechanismU, (struct berval *)cred, + credU.bv_len = cred->bv_len; + credU.bv_val = cred->bv_val; + + ret = ldap_sasl_bind_s( ld, dnU, mechanismU, &credU, serverctrlsU, clientctrlsU, (struct berval **)serverdata );
exit: