From: Pierangelo Masarati Date: Thu, 13 Apr 2006 14:46:16 +0000 (+0000) Subject: cleanup X-Git-Tag: OPENLDAP_REL_ENG_2_4_0ALPHA~3^2~14 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a2a92980802b2302673d013bdc73cd733b78b030;p=openldap cleanup --- diff --git a/servers/slapd/root_dse.c b/servers/slapd/root_dse.c index ac523a65a5..356cbc78a6 100644 --- a/servers/slapd/root_dse.c +++ b/servers/slapd/root_dse.c @@ -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; } diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index b166e014ac..b8f9a74329 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -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 ) {