From 4fca8d7aa77db648a08051f54fb181d4eaa8b94d Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 22 Jan 2020 11:47:55 +0100 Subject: tdb: Align integer types Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Thu Jan 23 20:41:46 UTC 2020 on sn-devel-184 --- lib/tdb/common/mutex.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/tdb') diff --git a/lib/tdb/common/mutex.c b/lib/tdb/common/mutex.c index 8a122d5d6a2..78926db0be8 100644 --- a/lib/tdb/common/mutex.c +++ b/lib/tdb/common/mutex.c @@ -149,7 +149,7 @@ static bool tdb_mutex_index(struct tdb_context *tdb, off_t off, off_t len, static bool tdb_have_mutex_chainlocks(struct tdb_context *tdb) { - size_t i; + int i; for (i=0; i < tdb->num_lockrecs; i++) { bool ret; @@ -559,7 +559,8 @@ int tdb_mutex_init(struct tdb_context *tdb) { struct tdb_mutexes *m; pthread_mutexattr_t ma; - int i, ret; + uint32_t i; + int ret; ret = tdb_mutex_mmap(tdb); if (ret == -1) { -- cgit v1.2.1