From: Martin Schwenke Date: Tue, 28 May 2019 00:55:19 +0000 (+1000) Subject: ctdb-tools: Fix signed/unsigned comparison by declaring as int X-Git-Tag: ldb-2.0.5~486 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=282221b0d64314f40b92651ffb41a95e01a1267a;p=thirdparty%2Fsamba.git ctdb-tools: Fix signed/unsigned comparison by declaring as int There's no point using unsigned here. tdb_traverse() returns an int for the number of records traversed and the number of empty records can't exceed this value. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/tools/ltdbtool.c b/ctdb/tools/ltdbtool.c index edb17ce5557..d33480ce8fe 100644 --- a/ctdb/tools/ltdbtool.c +++ b/ctdb/tools/ltdbtool.c @@ -269,7 +269,7 @@ struct ltdb_traverse_ctx { void* state; size_t hsize; bool skip_empty; - unsigned nempty; + int nempty; }; static int