wldap32: fix a compiler warning on Mac OS X

Austin English austinenglish at gmail.com
Tue Jun 9 17:00:30 CDT 2009


On Tue, Jun 9, 2009 at 4:51 PM, Stefan
Leichter<Stefan.Leichter at camline.com> wrote:
> Am Tuesday 09 June 2009 23:46:51 schrieb Austin English:
>> Cast was removed by d576c2d9342e769c01fb99c0cc200a0bc4b9cded, but
>> causes a compiler warning on OS X. The same cast is used ~20 lines
>> later.
>
> You forgot the patch
>
> --
> Stefan
>
>
>

Whoops, thanks! Here it is.

-- 
-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-devel mailing list