From 21c8846e647aea3e5071279c4d488c775af46219 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 16 Jan 2002 05:44:21 +0000 Subject: [PATCH] Fix last commit --- servers/slapd/proto-slap.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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, -- 2.39.5