ctdb-protocol: Fix signed/unsigned comparison by declaring as unsigned
authorMartin Schwenke <martin@meltin.net>
Wed, 26 Jun 2019 06:14:28 +0000 (16:14 +1000)
committerAmitay Isaacs <amitay@samba.org>
Fri, 5 Jul 2019 05:03:24 +0000 (05:03 +0000)
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/protocol/protocol_types.c

index 8090dbddadfd0fe419c98d0c71fb45c24421d817..5fb8f201e5d480509c2f10289bd56eb913ef7775 100644 (file)
@@ -1640,7 +1640,8 @@ int ctdb_rec_buffer_traverse(struct ctdb_rec_buffer *recbuf,
        TDB_DATA key, data;
        uint32_t reqid;
        size_t offset, reclen;
-       int ret = 0, i;
+       unsigned int i;
+       int ret = 0;
 
        offset = 0;
        for (i=0; i<recbuf->count; i++) {