From: Hallvard Furuseth Date: Tue, 9 Mar 1999 07:19:18 +0000 (+0000) Subject: Pass LDAP_OPT_ instead of (void*)flag to ldap_set_option X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~428 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f7b4f5e9d7150c5c1d0ba081baf2b7667c629194;p=openldap Pass LDAP_OPT_ instead of (void*)flag to ldap_set_option --- diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index b363035381..b55c46121d 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -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 */ }