]> git.sur5r.net Git - openldap/commitdiff
cleanup
authorPierangelo Masarati <ando@openldap.org>
Thu, 13 Apr 2006 14:46:16 +0000 (14:46 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 13 Apr 2006 14:46:16 +0000 (14:46 +0000)
servers/slapd/root_dse.c
servers/slapd/syncrepl.c

index ac523a65a5ab383eb187f0d7107fbba91b57c5d5..356cbc78a68182b7c59ac41ae7c6bc2bcf4ca2fd 100644 (file)
@@ -477,7 +477,8 @@ slap_discover_feature(
                return rc;
        }
 
-       rc = ldap_set_option( ld, LDAP_OPT_PROTOCOL_VERSION, &version );
+       rc = ldap_set_option( ld, LDAP_OPT_PROTOCOL_VERSION,
+               (const void *)&version );
        if ( rc != LDAP_SUCCESS ) {
                goto done;
        }
index b166e014ac0ed2538a9e5b8412838a8cc8fd2341..b8f9a743297d40dd486c54815d7fedf4e1f6102c 100644 (file)
@@ -436,7 +436,8 @@ do_syncrep1(
        }
 
        op->o_protocol = LDAP_VERSION3;
-       ldap_set_option( si->si_ld, LDAP_OPT_PROTOCOL_VERSION, &op->o_protocol );
+       ldap_set_option( si->si_ld, LDAP_OPT_PROTOCOL_VERSION,
+               (const void *)&op->o_protocol );
 
 #ifdef HAVE_TLS
        if ( si->si_check_tls ) {