summaryrefslogtreecommitdiff
path: root/ctdb
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2019-06-26 16:14:28 +1000
committerAmitay Isaacs <amitay@samba.org>2019-07-05 05:03:24 +0000
commit248d585ab420ef837001fa9a882101b209bae7d3 (patch)
tree4b6c07a783b861c4e3a786905658ed5df0cf5bb1 /ctdb
parent4f84aafa61cad21ba77b86f3341c09e0314e8b47 (diff)
downloadsamba-248d585ab420ef837001fa9a882101b209bae7d3.tar.gz
ctdb-protocol: Fix signed/unsigned comparison by declaring as unsigned
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb')
-rw-r--r--ctdb/protocol/protocol_types.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ctdb/protocol/protocol_types.c b/ctdb/protocol/protocol_types.c
index 8090dbddadf..5fb8f201e5d 100644
--- a/ctdb/protocol/protocol_types.c
+++ b/ctdb/protocol/protocol_types.c
@@ -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++) {