int *msgidp )
{
BerElement *ber;
- int i, rc;
+ int rc;
ber_int_t id;
Debug( LDAP_DEBUG_TRACE, "ldap_add_ext\n", 0, 0, 0 );
int *msgidp )
{
BerElement *ber;
- int rc;
ber_int_t id;
Debug( LDAP_DEBUG_TRACE, "ldap_extended_operation\n", 0, 0, 0 );
int *msgidp )
{
BerElement *ber;
- int i, rc;
+ int rc;
ber_int_t id;
Debug( LDAP_DEBUG_TRACE, "ldap_modify_ext\n", 0, 0, 0 );
return rc;
}
#else
-static int dummy;
+static int dummy; /* generate also a warning: 'dummy' defined but not used (at least here) */
#endif /* LDAP_PF_LOCAL */
#define get_returnContRef(op) ((op)->o_returnContRef & SLAP_CONTROL_MASK)
static struct berval slap_EXOP_CHAINEDREQUEST = BER_BVC( LDAP_EXOP_X_CHAINEDREQUEST );
+#ifdef LDAP_DEVEL
static struct berval slap_FEATURE_CANCHAINOPS = BER_BVC( LDAP_FEATURE_X_CANCHAINOPS );
+#endif
+
static BackendInfo *lback;
{
const unsigned char *buf = vbuf;
ber_uint_t crc = 0xffffffff;
- int i;
while (len > 7) {
CRC8;
ID id,
Entry **e )
{
- struct mdb_info *mdb = (struct mdb_info *) op->o_bd->be_private;
MDB_val key, data;
int rc = 0;
{
struct mdb_info *mdb = (struct mdb_info *) op->o_bd->be_private;
struct mdb_op_info *moi = NULL;
- int rc;
/* slapMode : SLAP_SERVER_MODE, SLAP_TOOL_MODE,
SLAP_TRUNCATE_MODE, SLAP_UNDEFINED_MODE */
static int mdb_entry_encode(Operation *op, Entry *e, MDB_val *data, Ecount *eh)
{
struct mdb_info *mdb = (struct mdb_info *) op->o_bd->be_private;
- ber_len_t len, i;
- int rc;
+ ber_len_t i;
Attribute *a;
unsigned char *ptr;
unsigned int *lp, l;
Attribute *a;
Entry *x;
const char *text;
- AttributeDescription *ad;
unsigned int *lp = (unsigned int *)data->mv_data;
unsigned char *ptr;
BerVarray bptr;
int opid,
slap_mask_t mask )
{
- int rc, i;
+ int rc;
struct berval *keys;
MDB_cursor *mc = ai->ai_cursor;
mdb_idl_keyfunc *keyfunc;
} else if ( i == MDB_DN2ID ) {
MDB_cursor *mc;
MDB_val key, data;
- ID id;
mdb_set_dupsort( txn, mdb->mi_dbis[i], mdb_dup_compare );
/* check for old dn2id format */
rc = mdb_cursor_open( txn, mdb->mi_dbis[i], &mc );
Entry *e,
void *priv )
{
+#ifdef MDB_MONITOR_IDX
struct mdb_info *mdb = (struct mdb_info *) priv;
-#ifdef MDB_MONITOR_IDX
mdb_monitor_idx_entry_add( mdb, e );
#endif /* MDB_MONITOR_IDX */
int
mdb_monitor_db_init( BackendDB *be )
{
+#ifdef MDB_MONITOR_IDX
struct mdb_info *mdb = (struct mdb_info *) be->be_private;
+#endif /* MDB_MONITOR_IDX */
if ( mdb_monitor_initialize() == LDAP_SUCCESS ) {
/* monitoring in back-mdb is on by default */
static ID2 *scope_chunk_get( Operation *op )
{
- struct mdb_info *mdb = (struct mdb_info *) op->o_bd->be_private;
ID2 *ret = NULL;
ldap_pvt_thread_pool_getkey( op->o_threadctx, (void *)scope_chunk_get,
static void scope_chunk_ret( Operation *op, ID2 *scopes )
{
- struct mdb_info *mdb = (struct mdb_info *) op->o_bd->be_private;
void *ret = NULL;
ldap_pvt_thread_pool_getkey( op->o_threadctx, (void *)scope_chunk_get,
struct berval *text,
int hole )
{
- struct mdb_info *mdb = (struct mdb_info *) op->o_bd->be_private;
struct berval dn = e->e_name;
struct berval ndn = e->e_nname;
struct berval pdn, npdn, nmatched;
MDB_txn *mt;
MDB_cursor *mc = NULL;
MDB_val key, data;
- char *ptr;
int rc, writes=0, depth=0;
int enable_meter = 0;
ID id = 0, *num, count = 0;
static int
syncprov_qplay( Operation *op, syncops *so )
{
- slap_overinst *on = LDAP_SLIST_FIRST(&so->s_op->o_extra)->oe_key;
syncres *sr;
int rc = 0;
}
sl->sl_num++;
while ( sl->sl_num > sl->sl_size ) {
- int i, j;
+ int i;
se = sl->sl_head;
sl->sl_head = se->se_next;
for ( i=0; i<sl->sl_numcsns; i++ )
if ( match < 0 ) {
Operation op2 = *op;
AttributeName an[2];
- const char *text;
struct berval bv;
- char *ptr;
- Modifications *ml;
- int size, rc;
+ int size;
SlapReply rs1 = {0};
resolve_ctxt rx;
slap_callback cb = { NULL, syncrepl_resolve_cb, NULL, NULL };
{
LDAP *ld = NULL;
int version = LDAP_VERSION3;
- int i = 0, do_retry = maxretries;
+ int do_retry = maxretries;
int rc = LDAP_SUCCESS;
char thrstr[BUFSIZ];
int rc = LDAP_SUCCESS;
int lo, hi, range;
int flen;
- LDAPMessage *res = NULL, *e = NULL;
+ LDAPMessage *res = NULL;
char *ptr, *ftail;
char thrstr[BUFSIZ];
char fbuf[BUFSIZ];