Address gcc warnings.
authorVolker Lendecke <vlendec@samba.org>
Sat, 19 Apr 2003 18:45:03 +0000 (18:45 +0000)
committerVolker Lendecke <vlendec@samba.org>
Sat, 19 Apr 2003 18:45:03 +0000 (18:45 +0000)
I could not fix the "passing arg 5 of `ldap_search_s'" completely with
gcc -Wall. A non-developer compile does not complain though.

Volker
(This used to be commit dcbbbd66a9be799998476701a9e1059c14e4f061)

source3/lib/ldap.c

index d0e72c4844383438a8722c292317c401968bdc1e..917e03a871c807d81f76c30e216ac99d4191fafc 100644 (file)
@@ -503,7 +503,7 @@ int smb_ldap_search(struct smb_ldap_privates *ldap_state,
                        continue;
                
                rc = ldap_search_s(ldap_state->ldap_struct, base, scope, 
-                                  filter, attrs, attrsonly, res);
+                                  filter, (char **)attrs, attrsonly, res);
        }
        
        if (rc == LDAP_SERVER_DOWN) {