From: Martin Schwenke Date: Mon, 10 Feb 2020 06:50:30 +0000 (+1100) Subject: ctdb-daemon: Fix signed/unsigned comparison X-Git-Tag: ldb-2.1.1~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a20403adf871d2c1a646be0737935f85b55f8779;p=thirdparty%2Fsamba.git 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 Reviewed-by: Amitay Isaacs --- 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;