From a20403adf871d2c1a646be0737935f85b55f8779 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Mon, 10 Feb 2020 17:50:30 +1100 Subject: [PATCH] ctdb-daemon: Fix signed/unsigned comparison MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Amitay Isaacs --- ctdb/include/ctdb_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h index de7caef52af..405bf3b4186 100644 --- a/ctdb/include/ctdb_private.h +++ b/ctdb/include/ctdb_private.h @@ -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;