mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 09:39:45 -05:00
Add comment regarding use of LDAP_OPT_SUCCESS v. LDAP_OPT_ERROR comparisons.
This commit is contained in:
parent
5f20cf1ed5
commit
6f44bf3ed3
1 changed files with 6 additions and 0 deletions
|
|
@ -138,6 +138,12 @@ LDAP_BEGIN_DECL
|
|||
#define LDAP_OPT_ON ((void *) 1)
|
||||
#define LDAP_OPT_OFF ((void *) 0)
|
||||
|
||||
/*
|
||||
* ldap_get_option() and ldap_set_option() return values.
|
||||
* As later versions may return other values indicating
|
||||
* failure, current applications should only compare returned
|
||||
* value against LDAP_OPT_SUCCESS.
|
||||
*/
|
||||
#define LDAP_OPT_SUCCESS 0
|
||||
#define LDAP_OPT_ERROR (-1)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue