]> git.sur5r.net Git - openldap/commitdiff
Change (int) invalue == (int) LDAP_OPT_ON to invalue == LDAP_OPT_ON.
authorKurt Zeilenga <kurt@openldap.org>
Sat, 6 Mar 1999 17:11:35 +0000 (17:11 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 6 Mar 1999 17:11:35 +0000 (17:11 +0000)
libraries/libldap/options.c

index 7bc03b141dcc389ff7db875906e0a5221cc204b8..a4b5d8ae2b2bb043c25f6b76ba7589b2ca9ad714 100644 (file)
@@ -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);