From: Kurt Zeilenga Date: Wed, 16 Jan 2002 05:44:21 +0000 (+0000) Subject: Fix last commit X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~115 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=21c8846e647aea3e5071279c4d488c775af46219;p=openldap Fix last commit --- diff --git a/servers/slapd/proto-slap.h b/servers/slapd/proto-slap.h index c05dbb21c1..ba1700210b 100644 --- a/servers/slapd/proto-slap.h +++ b/servers/slapd/proto-slap.h @@ -57,9 +57,8 @@ 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 ) \ - : ((l)->ad_cname.bv_len - (r)->ad_cname.bv_len )) +#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 ) LDAP_SLAPD_F (int) is_ad_subtype LDAP_P(( AttributeDescription *sub,