Commit d576c2d9 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

wldap32: Remove superfluous pointer casts.

parent f7c13328
...@@ -327,7 +327,7 @@ ULONG CDECL ldap_set_optionA( WLDAP32_LDAP *ld, int option, void *value ) ...@@ -327,7 +327,7 @@ ULONG CDECL ldap_set_optionA( WLDAP32_LDAP *ld, int option, void *value )
{ {
LDAPControlW **ctrlsW; LDAPControlW **ctrlsW;
ctrlsW = controlarrayAtoW( (LDAPControlA **)value ); ctrlsW = controlarrayAtoW( value );
if (!ctrlsW) return WLDAP32_LDAP_NO_MEMORY; if (!ctrlsW) return WLDAP32_LDAP_NO_MEMORY;
ret = ldap_set_optionW( ld, option, ctrlsW ); ret = ldap_set_optionW( ld, option, ctrlsW );
...@@ -430,7 +430,7 @@ ULONG CDECL ldap_set_optionW( WLDAP32_LDAP *ld, int option, void *value ) ...@@ -430,7 +430,7 @@ ULONG CDECL ldap_set_optionW( WLDAP32_LDAP *ld, int option, void *value )
{ {
LDAPControl **ctrlsU; LDAPControl **ctrlsU;
ctrlsU = controlarrayWtoU( (LDAPControlW **)value ); ctrlsU = controlarrayWtoU( value );
if (!ctrlsU) return WLDAP32_LDAP_NO_MEMORY; if (!ctrlsU) return WLDAP32_LDAP_NO_MEMORY;
ret = map_error( ldap_set_option( ld, option, ctrlsU )); ret = map_error( ldap_set_option( ld, option, ctrlsU ));
......
...@@ -444,7 +444,7 @@ INT CDECL ldap_parse_vlv_controlW( WLDAP32_LDAP *ld, PLDAPControlW *control, ...@@ -444,7 +444,7 @@ INT CDECL ldap_parse_vlv_controlW( WLDAP32_LDAP *ld, PLDAPControlW *control,
#ifdef HAVE_LDAP_PARSE_VLV_CONTROL #ifdef HAVE_LDAP_PARSE_VLV_CONTROL
if (!(ret = ldap_parse_vlv_control( ld, controlU, &pos, &count, if (!(ret = ldap_parse_vlv_control( ld, controlU, &pos, &count,
(struct berval **)context, errcode ))) context, errcode )))
{ {
*targetpos = pos; *targetpos = pos;
*listcount = count; *listcount = count;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment