mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 01:59:38 -05:00
Replace (int)LDAP_BOOL_GET(...) with LDAP_BOOL_GET(...)==LDAP_OPT_ON
This commit is contained in:
parent
f7b4f5e9d7
commit
26f257f40d
1 changed files with 6 additions and 3 deletions
|
|
@ -127,15 +127,18 @@ ldap_get_option(
|
|||
return 0;
|
||||
|
||||
case LDAP_OPT_REFERRALS:
|
||||
* (int *) outvalue = (int) LDAP_BOOL_GET(lo, LDAP_BOOL_REFERRALS);
|
||||
* (int *) outvalue = (LDAP_BOOL_GET(lo, LDAP_BOOL_REFERRALS) ==
|
||||
LDAP_OPT_ON);
|
||||
return 0;
|
||||
|
||||
case LDAP_OPT_RESTART:
|
||||
* (int *) outvalue = (int) LDAP_BOOL_GET(lo, LDAP_BOOL_RESTART);
|
||||
* (int *) outvalue = (LDAP_BOOL_GET(lo, LDAP_BOOL_RESTART) ==
|
||||
LDAP_OPT_ON);
|
||||
return 0;
|
||||
|
||||
case LDAP_OPT_DNS: /* LDAPv2 */
|
||||
* (int *) outvalue = (int) LDAP_BOOL_GET(lo, LDAP_BOOL_DNS);
|
||||
* (int *) outvalue = (LDAP_BOOL_GET(lo, LDAP_BOOL_DNS) ==
|
||||
LDAP_OPT_ON);
|
||||
return 0;
|
||||
|
||||
case LDAP_OPT_PROTOCOL_VERSION:
|
||||
|
|
|
|||
Loading…
Reference in a new issue