From a2a92980802b2302673d013bdc73cd733b78b030 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 13 Apr 2006 14:46:16 +0000 Subject: [PATCH] cleanup --- servers/slapd/root_dse.c | 3 ++- servers/slapd/syncrepl.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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 ) { -- 2.39.5