mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-03 13:40:37 -05:00
Modify ad_cmp() macro to support use as an ordering function.
This commit is contained in:
parent
d962166c23
commit
2c94c7915a
1 changed files with 3 additions and 2 deletions
|
|
@ -57,8 +57,9 @@ LDAP_SLAPD_F (AttributeDescription *) ad_dup LDAP_P((
|
|||
|
||||
LDAP_SLAPD_F (void) ad_destroy LDAP_P(( AttributeDescription * ));
|
||||
|
||||
#define ad_cmp(l,r) (((l)->ad_cname.bv_len == (r)->ad_cname.bv_len) \
|
||||
? strcasecmp((l)->ad_cname.bv_val, (r)->ad_cname.bv_val ) : 1 )
|
||||
#define ad_cmp(l,r) (((l)->ad_cname.bv_len < (r)->ad_cname.bv_len) \
|
||||
? -1 : (((l)->ad_cname.bv_len > (r)->ad_cname.bv_len) \
|
||||
? strcasecmp((l)->ad_cname.bv_val, (r)->ad_cname.bv_val ) : 1 ))
|
||||
|
||||
LDAP_SLAPD_F (int) is_ad_subtype LDAP_P((
|
||||
AttributeDescription *sub,
|
||||
|
|
|
|||
Loading…
Reference in a new issue