Silence compiler warnings

This commit is contained in:
Ondřej Kuzník 2019-02-19 10:27:34 +00:00
parent f4a68297a0
commit 117dcbc54d
5 changed files with 5 additions and 5 deletions

View File

@ -2503,6 +2503,7 @@ print_dirsync( LDAP *ld, LDAPControl *ctrl )
}
}
}
return rc;
}
#endif

View File

@ -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;
}
}

View File

@ -462,7 +462,6 @@ rewrite_map_apply(
val );
else
rc = REWRITE_ERR;
break;
break;
}

View File

@ -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 );

View File

@ -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 );
}