wldap32: Remove superfluous pointer casts.
Michael Stefaniuc
mstefani at redhat.de
Tue Jan 13 03:54:41 CST 2009
---
dlls/wldap32/option.c | 4 ++--
dlls/wldap32/parse.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/wldap32/option.c b/dlls/wldap32/option.c
index 713b3ca..801d77d 100644
--- a/dlls/wldap32/option.c
+++ b/dlls/wldap32/option.c
@@ -327,7 +327,7 @@ ULONG CDECL ldap_set_optionA( WLDAP32_LDAP *ld, int option, void *value )
{
LDAPControlW **ctrlsW;
- ctrlsW = controlarrayAtoW( (LDAPControlA **)value );
+ ctrlsW = controlarrayAtoW( value );
if (!ctrlsW) return WLDAP32_LDAP_NO_MEMORY;
ret = ldap_set_optionW( ld, option, ctrlsW );
@@ -430,7 +430,7 @@ ULONG CDECL ldap_set_optionW( WLDAP32_LDAP *ld, int option, void *value )
{
LDAPControl **ctrlsU;
- ctrlsU = controlarrayWtoU( (LDAPControlW **)value );
+ ctrlsU = controlarrayWtoU( value );
if (!ctrlsU) return WLDAP32_LDAP_NO_MEMORY;
ret = map_error( ldap_set_option( ld, option, ctrlsU ));
diff --git a/dlls/wldap32/parse.c b/dlls/wldap32/parse.c
index 6439ba6..f7e93dd 100644
--- a/dlls/wldap32/parse.c
+++ b/dlls/wldap32/parse.c
@@ -444,7 +444,7 @@ INT CDECL ldap_parse_vlv_controlW( WLDAP32_LDAP *ld, PLDAPControlW *control,
#ifdef HAVE_LDAP_PARSE_VLV_CONTROL
if (!(ret = ldap_parse_vlv_control( ld, controlU, &pos, &count,
- (struct berval **)context, errcode )))
+ context, errcode )))
{
*targetpos = pos;
*listcount = count;
--
1.6.0.6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20090113/8886d359/attachment.pgp
More information about the wine-patches
mailing list