From: Hallvard Furuseth Date: Tue, 9 Mar 1999 07:42:17 +0000 (+0000) Subject: Replace (int)LDAP_BOOL_GET(...) with LDAP_BOOL_GET(...)==LDAP_OPT_ON X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~427 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=26f257f40db3340a6bd7842d939e05ccf0e0af01;p=openldap Replace (int)LDAP_BOOL_GET(...) with LDAP_BOOL_GET(...)==LDAP_OPT_ON --- diff --git a/libraries/libldap/options.c b/libraries/libldap/options.c index a4b5d8ae2b..3c99686ff3 100644 --- a/libraries/libldap/options.c +++ b/libraries/libldap/options.c @@ -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: