diff options
author | Volker Lendecke <vl@samba.org> | 2020-01-22 11:47:55 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2020-01-23 20:41:46 +0000 |
commit | 4fca8d7aa77db648a08051f54fb181d4eaa8b94d (patch) | |
tree | e6e1f08b074997c56a33742b6eae2633d3a68733 /lib/tdb | |
parent | 2d3cbc53cc90e12eba4ded9713a9926370aebedc (diff) | |
download | samba-4fca8d7aa77db648a08051f54fb181d4eaa8b94d.tar.gz |
tdb: Align integer types
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Jan 23 20:41:46 UTC 2020 on sn-devel-184
Diffstat (limited to 'lib/tdb')
-rw-r--r-- | lib/tdb/common/mutex.c | 5 |
1 files changed, 3 insertions, 2 deletions
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) { |