summaryrefslogtreecommitdiff
path: root/ctdb/server/ctdb_lock_helper.c
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2019-06-08 06:38:56 +1000
committerAmitay Isaacs <amitay@samba.org>2019-07-05 05:03:23 +0000
commit1e47a1b3f6ab1e2ad9d86dfb28c3e086c99a97e5 (patch)
tree33fa049888d3aba8147707ad30591ecea5cd8734 /ctdb/server/ctdb_lock_helper.c
parent3ccce53e3e6ebb5f7f628bd1b18b7152f548dd27 (diff)
downloadsamba-1e47a1b3f6ab1e2ad9d86dfb28c3e086c99a97e5.tar.gz
ctdb-daemon: Fix signed/unsigned comparisons by declaring as unsigned
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/server/ctdb_lock_helper.c')
-rw-r--r--ctdb/server/ctdb_lock_helper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ctdb/server/ctdb_lock_helper.c b/ctdb/server/ctdb_lock_helper.c
index f918b73dbd3..6b6fbbe27a5 100644
--- a/ctdb/server/ctdb_lock_helper.c
+++ b/ctdb/server/ctdb_lock_helper.c
@@ -86,7 +86,8 @@ static void usage(const char *progname)
static uint8_t *hex_decode_talloc(TALLOC_CTX *mem_ctx,
const char *hex_in, size_t *len)
{
- int i, num;
+ unsigned int i;
+ int num;
uint8_t *buffer;
*len = strlen(hex_in) / 2;