mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
use macros instead of literals
This commit is contained in:
parent
955253966b
commit
682a1981a1
@ -2454,10 +2454,10 @@ access2text( Access *b, char *ptr )
|
|||||||
if ( !BER_BVISEMPTY( &b->a_group_pat ) ) {
|
if ( !BER_BVISEMPTY( &b->a_group_pat ) ) {
|
||||||
ptr = lutil_strcopy( ptr, " group/" );
|
ptr = lutil_strcopy( ptr, " group/" );
|
||||||
ptr = lutil_strcopy( ptr, b->a_group_oc ?
|
ptr = lutil_strcopy( ptr, b->a_group_oc ?
|
||||||
b->a_group_oc->soc_cname.bv_val : "groupOfNames" );
|
b->a_group_oc->soc_cname.bv_val : SLAPD_GROUP_CLASS );
|
||||||
*ptr++ = '/';
|
*ptr++ = '/';
|
||||||
ptr = lutil_strcopy( ptr, b->a_group_at ?
|
ptr = lutil_strcopy( ptr, b->a_group_at ?
|
||||||
b->a_group_at->ad_cname.bv_val : "member" );
|
b->a_group_at->ad_cname.bv_val : SLAPD_GROUP_ATTR );
|
||||||
*ptr++ = '.';
|
*ptr++ = '.';
|
||||||
ptr = lutil_strcopy( ptr, style_strings[b->a_group_style] );
|
ptr = lutil_strcopy( ptr, style_strings[b->a_group_style] );
|
||||||
*ptr++ = '=';
|
*ptr++ = '=';
|
||||||
|
@ -380,11 +380,11 @@ is_dn: bv.bv_len = uri->bv_len - (bv.bv_val - uri->bv_val);
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
group_oc.bv_len = group_dn.bv_val - group_oc.bv_val;
|
group_oc.bv_len = group_dn.bv_val - group_oc.bv_val;
|
||||||
BER_BVSTR( &member_at, "member" );
|
BER_BVSTR( &member_at, SLAPD_GROUP_ATTR );
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
BER_BVSTR( &group_oc, "groupOfNames" );
|
BER_BVSTR( &group_oc, SLAPD_GROUP_CLASS );
|
||||||
}
|
}
|
||||||
group_dn.bv_val++;
|
group_dn.bv_val++;
|
||||||
group_dn.bv_len = uri->bv_len - ( group_dn.bv_val - uri->bv_val );
|
group_dn.bv_len = uri->bv_len - ( group_dn.bv_val - uri->bv_val );
|
||||||
|
Loading…
Reference in New Issue
Block a user