]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-tools: Fix signed/unsigned comparison by declaring as int
authorMartin Schwenke <martin@meltin.net>
Tue, 28 May 2019 00:55:19 +0000 (10:55 +1000)
committerAmitay Isaacs <amitay@samba.org>
Wed, 5 Jun 2019 10:25:49 +0000 (10:25 +0000)
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 <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tools/ltdbtool.c

index edb17ce55573ba1efae2f25f321e8a4f20c2fc9e..d33480ce8fe59645e05f04432eff07713dca2f65 100644 (file)
@@ -269,7 +269,7 @@ struct ltdb_traverse_ctx {
        void* state;
        size_t hsize;
        bool skip_empty;
-       unsigned nempty;
+       int nempty;
 };
 
 static int