diff options
author | Martin Schwenke <martin@meltin.net> | 2019-05-28 10:55:19 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2019-06-05 10:25:49 +0000 |
commit | 282221b0d64314f40b92651ffb41a95e01a1267a (patch) | |
tree | 465ee07e3ba54ef0c5143a0a077ae6aceccfee15 /ctdb | |
parent | 201066d2e63c38485c3bad8f9f7c1bb53f0b9f65 (diff) | |
download | samba-282221b0d64314f40b92651ffb41a95e01a1267a.tar.gz |
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 <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb')
-rw-r--r-- | ctdb/tools/ltdbtool.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |