dbwrap_ctdb: Align loop index with terminator
authorVolker Lendecke <vl@samba.org>
Mon, 11 Apr 2016 13:45:49 +0000 (15:45 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 17 May 2016 11:18:31 +0000 (13:18 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/lib/dbwrap/dbwrap_ctdb.c

index 532240d156581f3aea3257c8d8c6d1c6405dd8a7..e6b6524d804e30ffbf499b9b2387a701979c3d66 100644 (file)
@@ -357,7 +357,7 @@ static bool parse_newest_in_marshall_buffer(
        struct ctdb_rec_data_old *rec = NULL;
        struct ctdb_ltdb_header *h = NULL;
        TDB_DATA data;
-       int i;
+       uint32_t i;
 
        if (buf == NULL) {
                return false;
@@ -1431,7 +1431,7 @@ static int db_ctdb_traverse(struct db_context *db,
                        struct db_context *newkeys = db_open_rbt(talloc_tos());
                        struct ctdb_marshall_buffer *mbuf = ctx->transaction->m_write;
                        struct ctdb_rec_data_old *rec=NULL;
-                       int i;
+                       uint32_t i;
                        int count = 0;
                        NTSTATUS status;