break;
}
- * (int *) outvalue = ld->ld_sb.sb_sd;
+ * (int *) outvalue = lber_pvt_sb_get_desc( &(ld->ld_sb) );
return 0;
case LDAP_OPT_DEREF:
return 0;
case LDAP_OPT_REFERRALS:
- if((int) invalue == (int) LDAP_OPT_ON) {
+ if(invalue == LDAP_OPT_ON) {
LDAP_BOOL_SET(lo, LDAP_BOOL_REFERRALS);
} else {
LDAP_BOOL_CLR(lo, LDAP_BOOL_REFERRALS);
return 0;
case LDAP_OPT_RESTART:
- if((int) invalue == (int) LDAP_OPT_ON) {
+ if(invalue == LDAP_OPT_ON) {
LDAP_BOOL_SET(lo, LDAP_BOOL_RESTART);
} else {
LDAP_BOOL_CLR(lo, LDAP_BOOL_RESTART);