mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
Silence compiler warnings
This commit is contained in:
parent
f4a68297a0
commit
117dcbc54d
@ -2503,6 +2503,7 @@ print_dirsync( LDAP *ld, LDAPControl *ctrl )
|
||||
}
|
||||
}
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -1859,7 +1859,7 @@ ure_write_dfa(ure_dfa_t dfa, FILE *out)
|
||||
if (sym->props & (1 << k)) {
|
||||
if (h != 0)
|
||||
putc(',', out);
|
||||
fprintf(out, "%hd", k + 1);
|
||||
fprintf(out, "%d", k + 1);
|
||||
h = 1;
|
||||
}
|
||||
}
|
||||
|
@ -462,7 +462,6 @@ rewrite_map_apply(
|
||||
val );
|
||||
else
|
||||
rc = REWRITE_ERR;
|
||||
break;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -196,13 +196,13 @@ mdb_monitor_update(
|
||||
a = attr_find( e->e_attrs, ad_olmMDBReadersMax );
|
||||
assert( a != NULL );
|
||||
bv.bv_val = buf;
|
||||
bv.bv_len = snprintf( buf, sizeof( buf ), "%lu", mei.me_maxreaders );
|
||||
bv.bv_len = snprintf( buf, sizeof( buf ), "%u", mei.me_maxreaders );
|
||||
ber_bvreplace( &a->a_vals[ 0 ], &bv );
|
||||
|
||||
a = attr_find( e->e_attrs, ad_olmMDBReadersUsed );
|
||||
assert( a != NULL );
|
||||
bv.bv_val = buf;
|
||||
bv.bv_len = snprintf( buf, sizeof( buf ), "%lu", mei.me_numreaders );
|
||||
bv.bv_len = snprintf( buf, sizeof( buf ), "%u", mei.me_numreaders );
|
||||
ber_bvreplace( &a->a_vals[ 0 ], &bv );
|
||||
|
||||
rc = mdb_txn_begin( mdb->mi_dbenv, NULL, MDB_RDONLY, &txn );
|
||||
|
@ -1555,7 +1555,7 @@ syncprov_add_slog( Operation *op )
|
||||
ldap_pvt_thread_mutex_lock( &sl->sl_mutex );
|
||||
/* can only do this if no one else is reading the log at the moment */
|
||||
if (!sl->sl_playing) {
|
||||
while ( se = sl->sl_head ) {
|
||||
while ( (se = sl->sl_head) ) {
|
||||
sl->sl_head = se->se_next;
|
||||
ch_free( se );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user