= slap_schema.si_ad_ref;
e = (Entry *) SLAP_CALLOC( 1, sizeof(Entry) );
-
if( e == NULL ) {
Debug( LDAP_DEBUG_ANY,
"root_dse_info: SLAP_CALLOC failed", 0, 0, 0 );
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;
}