Entry *e, *e_backend, *e_tmp;
int i;
struct monitorentrypriv *mp;
- struct berval bv[2];
mi = ( struct monitorinfo * )be->be_private;
return( -1 );
}
- bv[1].bv_val = NULL;
e_tmp = NULL;
for ( i = nBackendInfo; i--; ) {
- char buf[1024];
- BackendInfo *bi;
+ char buf[1024];
+ BackendInfo *bi;
+ struct berval bv[ 2 ];
bi = &backendInfo[i];
bv[0].bv_val = bi->bi_type;
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 );
AttributeDescription *ad_nc = slap_schema.si_ad_namingContexts;
AttributeDescription *ad_seeAlso = NULL;
const char *text = NULL;
- struct berval bv[2];
assert( be != NULL );
assert( monitor_ad_desc != NULL );
}
for ( j = 0; be->be_suffix[j]; j++ ) {
- bv[0] = *be->be_suffix[j];
+ struct berval bv[ 2 ];
+
+ bv[ 0 ] = *be->be_suffix[ j ];
+ bv[ 1 ].bv_val = NULL;
attr_merge( e, ad_nc, bv );
attr_merge( e_database, ad_nc, bv );
for ( j = nBackendInfo; j--; ) {
if ( &backendInfo[ j ] == be->bd_info ) {
+ struct berval bv[ 2 ];
+
/* we check the pointer; the test on the
* string should be more reliable */
assert( strcasecmp( backendInfo[ j ].bi_type,
snprintf( buf, sizeof( buf ),
"cn=Backend %d,%s",
j, monitor_subsys[SLAPD_MONITOR_BACKEND].mss_dn.bv_val );
- bv->bv_val = buf;
- bv->bv_len = strlen( buf );
+ bv[ 0 ].bv_val = buf;
+ bv[ 0 ].bv_len = strlen( buf );
+ bv[ 1 ].bv_val = NULL;
attr_merge( e, ad_seeAlso, bv );
break;
}