From: Volker Lendecke Date: Mon, 11 Apr 2016 13:45:49 +0000 (+0200) Subject: dbwrap_ctdb: Align loop index with terminator X-Git-Tag: tdb-1.3.10~1117 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e3fcf90f1553ca0d27d42225d1924664c4d8901e;p=thirdparty%2Fsamba.git dbwrap_ctdb: Align loop index with terminator Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/source3/lib/dbwrap/dbwrap_ctdb.c b/source3/lib/dbwrap/dbwrap_ctdb.c index 532240d1565..e6b6524d804 100644 --- a/source3/lib/dbwrap/dbwrap_ctdb.c +++ b/source3/lib/dbwrap/dbwrap_ctdb.c @@ -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;