bv[0].bv_len = strlen( bv[0].bv_val );
bv[1].bv_val = NULL;
- attr_merge( e, monitor_ad_desc, bv );
- attr_merge( e_backend, monitor_ad_desc, bv );
+ attr_mergeit( e, monitor_ad_desc, bv );
+ attr_mergeit( e_backend, monitor_ad_desc, bv );
if ( bi->bi_controls ) {
int j;
for ( j = 0; bi->bi_controls[ j ]; j++ ) {
bv[0].bv_val = bi->bi_controls[ j ];
bv[0].bv_len = strlen( bv[0].bv_val );
- attr_merge( e, slap_schema.si_ad_supportedControl, bv );
+ attr_mergeit( e, slap_schema.si_ad_supportedControl, bv );
}
}
bv[1].bv_val = NULL;
bv[0].bv_val = "0";
bv[0].bv_len = 1;
- attr_merge( e, monitor_ad_desc, bv );
+ attr_mergeit( e, monitor_ad_desc, bv );
mp = ( struct monitorentrypriv * )ch_calloc( sizeof( struct monitorentrypriv ), 1 );
e->e_private = ( void * )mp;
bv[1].bv_val = NULL;
bv[0].bv_val = "0";
bv[0].bv_len = 1;
- attr_merge( e, monitor_ad_desc, bv );
+ attr_mergeit( e, monitor_ad_desc, bv );
mp = ( struct monitorentrypriv * )ch_calloc( sizeof( struct monitorentrypriv ), 1 );
e->e_private = ( void * )mp;
bv[1].bv_val = NULL;
bv[0].bv_val = buf;
bv[0].bv_len = strlen( buf );
- attr_merge( e, monitor_ad_desc, bv );
+ attr_mergeit( e, monitor_ad_desc, bv );
mp = ( struct monitorentrypriv * )ch_calloc( sizeof( struct monitorentrypriv ), 1 );
e->e_private = ( void * )mp;
}
if ( be->be_flags & SLAP_BFLAG_MONITOR ) {
- attr_merge( e, ad_mc, be->be_suffix );
- attr_merge( e_database, ad_mc, be->be_suffix );
+ attr_mergeit( e, ad_mc, be->be_suffix );
+ attr_mergeit( e_database, ad_mc, be->be_suffix );
} else {
- attr_merge( e, ad_nc, be->be_suffix );
- attr_merge( e_database, ad_nc, be->be_suffix );
+ attr_mergeit( e, ad_nc, be->be_suffix );
+ attr_mergeit( e_database, ad_nc, be->be_suffix );
}
for ( j = nBackendInfo; j--; ) {
j, monitor_subsys[SLAPD_MONITOR_BACKEND].mss_dn.bv_val );
bv.bv_val = buf;
bv.bv_len = strlen( buf );
- attr_merge_one( e, ad_seeAlso, &bv );
+ attr_mergeit_one( e, ad_seeAlso, &bv );
break;
}
}
bv.bv_val = buf;
bv.bv_len = strlen( buf );
- attr_merge_one( e_database, monitor_ad_desc, &bv );
+ attr_mergeit_one( e_database, monitor_ad_desc, &bv );
i++;
} else {
bv[0].bv_len = strlen( Versionstr );
}
- if ( attr_merge( e, monitor_ad_desc, bv ) ) {
+ if ( attr_mergeit( e, monitor_ad_desc, bv ) ) {
#ifdef NEW_LOGGING
LDAP_LOG( OPERATION, CRIT,
"unable to add description to '%s' entry\n",
bv[1].bv_val = NULL;
bv[0].bv_val = "TLS";
bv[0].bv_len = sizeof("TLS")-1;
- attr_merge( e, monitor_ad_desc, bv );
+ attr_mergeit( e, monitor_ad_desc, bv );
}
#endif /* HAVE_TLS */
#ifdef LDAP_CONNECTIONLESS
bv[1].bv_val = NULL;
bv[0].bv_val = "UDP";
bv[0].bv_len = sizeof("UDP")-1;
- attr_merge( e, monitor_ad_desc, bv );
+ attr_mergeit( e, monitor_ad_desc, bv );
}
#endif /* HAVE_TLS */
bv[0].bv_val = ( char * )int_2_level[ i ].s;
bv[0].bv_len = strlen( bv[0].bv_val );
- attr_merge( e, monitor_ad_desc, bv );
+ attr_mergeit( e, monitor_ad_desc, bv );
}
}
*/
if ( is_at_operational( mod->sm_desc->ad_type ) ) {
( void ) attr_delete( &e->e_attrs, mod->sm_desc );
- rc = attr_merge( e, mod->sm_desc, mod->sm_bvalues );
+ rc = attr_mergeit( e, mod->sm_desc, mod->sm_bvalues );
if ( rc != 0 ) {
rc = LDAP_OTHER;
break;
}
/* no - add them */
- if ( attr_merge( e, mod->sm_desc, mod->sm_bvalues ) != 0 ) {
- /* this should return result of attr_merge */
+ if ( attr_mergeit( e, mod->sm_desc, mod->sm_bvalues ) != 0 ) {
+ /* this should return result of attr_mergeit */
return LDAP_OTHER;
}
}
if ( mod->sm_bvalues != NULL &&
- attr_merge( e, mod->sm_desc, mod->sm_bvalues ) != 0 ) {
+ attr_mergeit( e, mod->sm_desc, mod->sm_bvalues ) != 0 ) {
return LDAP_OTHER;
}
bv[1].bv_val = NULL;
bv[0].bv_val = "0";
bv[0].bv_len = 1;
- attr_merge( e, monitor_ad_desc, bv );
+ attr_mergeit( e, monitor_ad_desc, bv );
mp = ( struct monitorentrypriv * )ch_calloc( sizeof( struct monitorentrypriv ), 1 );
e->e_private = ( void * )mp;
bv[1].bv_val = NULL;
bv[0].bv_val = "0";
bv[0].bv_len = 1;
- attr_merge( e, monitor_ad_desc, bv );
+ attr_mergeit( e, monitor_ad_desc, bv );
mp = ( struct monitorentrypriv * )ch_calloc( sizeof( struct monitorentrypriv ), 1 );
e->e_private = ( void * )mp;
bv[0].bv_val = "0";
bv[0].bv_len = 1;
- attr_merge( e, monitor_ad_desc, bv );
+ attr_mergeit( e, monitor_ad_desc, bv );
mp = ( struct monitorentrypriv * )ch_calloc( sizeof( struct monitorentrypriv ), 1 );
e->e_private = ( void * )mp;
bv[0].bv_val = "0";
bv[0].bv_len = 1;
- attr_merge( e, monitor_ad_desc, bv );
+ attr_mergeit( e, monitor_ad_desc, bv );
mp = ( struct monitorentrypriv * )ch_calloc( sizeof( struct monitorentrypriv ), 1 );
e->e_private = ( void * )mp;
if ( b == NULL || b[0].bv_val == NULL ) {
bv[0].bv_val = buf;
bv[0].bv_len = strlen( buf );
- attr_merge( e, monitor_ad_desc, bv );
+ attr_mergeit( e, monitor_ad_desc, bv );
}
return( 0 );
bv[1].bv_val = NULL;
bv[0].bv_val = "0";
bv[0].bv_len = 1;
- attr_merge( e, monitor_ad_desc, bv );
+ attr_mergeit( e, monitor_ad_desc, bv );
mp = ( struct monitorentrypriv * )ch_calloc( sizeof( struct monitorentrypriv ), 1 );
e->e_private = ( void * )mp;
bv[0].bv_val = "0";
bv[0].bv_len = 1;
- attr_merge( e, monitor_ad_desc, bv );
+ attr_mergeit( e, monitor_ad_desc, bv );
mp = ( struct monitorentrypriv * )ch_calloc( sizeof( struct monitorentrypriv ), 1 );
e->e_private = ( void * )mp;
bv[0].bv_val = "0";
bv[0].bv_len = 1;
- attr_merge( e, monitor_ad_desc, bv );
+ attr_mergeit( e, monitor_ad_desc, bv );
mp = ( struct monitorentrypriv * )ch_calloc( sizeof( struct monitorentrypriv ), 1 );
e->e_private = ( void * )mp;
bv[0].bv_val = "0";
bv[0].bv_len = 1;
- attr_merge( e, monitor_ad_desc, bv );
+ attr_mergeit( e, monitor_ad_desc, bv );
mp = ( struct monitorentrypriv * )ch_calloc( sizeof( struct monitorentrypriv ), 1 );
e->e_private = ( void * )mp;
bv[0].bv_val = buf;
bv[0].bv_len = strlen( bv[0].bv_val );
- attr_merge( e, monitor_ad_desc, bv );
+ attr_mergeit( e, monitor_ad_desc, bv );
monitor_cache_release( mi, e );
if ( b == NULL || b[0].bv_val == NULL ) {
bv[0].bv_val = buf;
bv[0].bv_len = strlen( buf );
- attr_merge( e, monitor_ad_desc, bv );
+ attr_mergeit( e, monitor_ad_desc, bv );
}
return( 0 );
LDAP_SLAPD_F (Attribute *) attr_dup LDAP_P(( Attribute *a ));
#ifdef SLAP_NVALUES
+#define attr_mergeit( e, d, v ) attr_merge( e, d, v, NULL /* FIXME */ )
+#define attr_mergeit_one( e, d, v ) attr_merge_one( e, d, v, NULL /* FIXME */ )
+
LDAP_SLAPD_F (int) attr_merge LDAP_P(( Entry *e,
AttributeDescription *desc,
BerVarray vals,
struct berval *val,
struct berval *nval ));
#else
+#define attr_mergeit( e, d, v ) attr_merge( e, d, v )
+#define attr_mergeit_one( e, d, v ) attr_merge( e, d, v )
LDAP_SLAPD_F (int) attr_merge LDAP_P(( Entry *e,
AttributeDescription *desc,
BerVarray vals ));