]> git.sur5r.net Git - openldap/commitdiff
Pass LDAP_OPT_<ON/OFF> instead of (void*)flag to ldap_set_option
authorHallvard Furuseth <hallvard@openldap.org>
Tue, 9 Mar 1999 07:19:18 +0000 (07:19 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Tue, 9 Mar 1999 07:19:18 +0000 (07:19 +0000)
clients/tools/ldapsearch.c

index b363035381ba5a736e7312ef2e08813c16f80f01..b55c46121d226e58af40ae640b7b362dcf91cef6 100644 (file)
@@ -289,7 +289,8 @@ main( int argc, char **argv )
                /* set option error */
        }
        if (referrals != -1 &&
-               ldap_set_option( ld, LDAP_OPT_REFERRALS, (void *) referrals ) == -1 )
+               ldap_set_option( ld, LDAP_OPT_REFERRALS,
+                                (referrals ? LDAP_OPT_ON : LDAP_OPT_OFF) ) == -1 )
        {
                /* set option error */
        }