]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/options.c
Fixed typo in
[openldap] / libraries / libldap / options.c
index 0d0400a6b65d6331891b8fb9a4a7e965835dcbaf..a4b5d8ae2b2bb043c25f6b76ba7589b2ca9ad714 100644 (file)
@@ -111,7 +111,7 @@ ldap_get_option(
                        break;
                } 
 
-               * (int *) outvalue = ld->ld_sb.sb_sd;
+               * (int *) outvalue = lber_pvt_sb_get_desc( &(ld->ld_sb) );
                return 0;
 
        case LDAP_OPT_DEREF:
@@ -266,7 +266,7 @@ ldap_set_option(
                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);
@@ -274,7 +274,7 @@ ldap_set_option(
                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);