1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

ctdb-daemon: Fix signed/unsigned comparison

csbuild says:

  ctdb/server/ctdb_lock.c: scope_hint: In function ‘ctdb_find_lock_context’
  ctdb/server/ctdb_lock.c:671:33: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2020-02-10 17:50:30 +11:00 committed by Amitay Isaacs
parent c9405aec70
commit a20403adf8

View File

@ -376,7 +376,7 @@ struct ctdb_db_context {
struct lock_context *lock_current;
struct lock_context *lock_pending;
int lock_num_current;
unsigned int lock_num_current;
struct db_hash_context *lock_log;
struct ctdb_call_state *pending_calls;