]> git.sur5r.net Git - openldap/commitdiff
Fix for Windows mod compatibility, imported symbols cannot be used as
authorHoward Chu <hyc@openldap.org>
Fri, 26 Aug 2005 02:17:13 +0000 (02:17 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 26 Aug 2005 02:17:13 +0000 (02:17 +0000)
constant initializers.

servers/slapd/back-ldap/extended.c

index 070466ae0355ec1f3059dcfd83af98c6e37f1188..92ebf50034bac7f35d26c424b4f159b70775cd5c 100644 (file)
 BI_op_extended ldap_back_exop_passwd;
 
 static struct exop {
-       struct berval   *oid;
+       struct berval   oid;
        BI_op_extended  *extended;
 } exop_table[] = {
-       { (struct berval *)&slap_EXOP_MODIFY_PASSWD, ldap_back_exop_passwd },
-       { NULL, NULL }
+       { BER_BVC(LDAP_EXOP_MODIFY_PASSWD), ldap_back_exop_passwd },
+       { BER_BVNULL, NULL }
 };
 
 int
@@ -46,7 +46,7 @@ ldap_back_extended(
        int     i;
 
        for ( i = 0; exop_table[i].extended != NULL; i++ ) {
-               if ( bvmatch( exop_table[i].oid, &op->oq_extended.rs_reqoid ) )
+               if ( bvmatch( &exop_table[i].oid, &op->oq_extended.rs_reqoid ) )
                {
                        struct ldapconn *lc;
                        LDAPControl     **oldctrls = NULL;