wldap32: fix a compiler warning on Mac OS X

Austin English austinenglish at gmail.com
Wed Jun 10 01:15:13 CDT 2009


On Tue, Jun 9, 2009 at 4:46 PM, Austin
English<austinenglish at bordeauxgroup.com> wrote:
> Cast was removed by d576c2d9342e769c01fb99c0cc200a0bc4b9cded, but
> causes a compiler warning on OS X. The same cast is used ~20 lines
> later.
>
> --
> -Austin
>



-- 
-Austin
-------------- next part --------------
diff --git a/dlls/wldap32/parse.c b/dlls/wldap32/parse.c
index f7e93dd..6439ba6 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,
-                                        context, errcode )))
+                                        (struct berval **)context, errcode )))
     {
         *targetpos = pos;
         *listcount = count;


More information about the wine-patches mailing list