mirror of
https://github.com/samba-team/samba.git
synced 2025-03-10 12:58:35 +03:00
tdb: Align a few integer types
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
6f45cbf427
commit
2adbb1f751
@ -592,7 +592,8 @@ static int transaction_sync(struct tdb_context *tdb, tdb_off_t offset, tdb_len_t
|
||||
|
||||
static int _tdb_transaction_cancel(struct tdb_context *tdb)
|
||||
{
|
||||
int i, ret = 0;
|
||||
uint32_t i;
|
||||
int ret = 0;
|
||||
|
||||
if (tdb->transaction == NULL) {
|
||||
TDB_LOG((tdb, TDB_DEBUG_ERROR, "tdb_transaction_cancel: no transaction\n"));
|
||||
@ -654,7 +655,7 @@ _PUBLIC_ int tdb_transaction_cancel(struct tdb_context *tdb)
|
||||
static bool tdb_recovery_size(struct tdb_context *tdb, tdb_len_t *result)
|
||||
{
|
||||
tdb_len_t recovery_size = 0;
|
||||
int i;
|
||||
uint32_t i;
|
||||
|
||||
recovery_size = sizeof(uint32_t);
|
||||
for (i=0;i<tdb->transaction->num_blocks;i++) {
|
||||
@ -843,7 +844,7 @@ static int transaction_setup_recovery(struct tdb_context *tdb,
|
||||
tdb_off_t recovery_offset, recovery_max_size;
|
||||
tdb_off_t old_map_size = tdb->transaction->old_map_size;
|
||||
uint32_t magic, tailer;
|
||||
int i;
|
||||
uint32_t i;
|
||||
|
||||
/*
|
||||
check that the recovery area has enough space
|
||||
@ -1105,7 +1106,7 @@ static bool repack_worthwhile(struct tdb_context *tdb)
|
||||
_PUBLIC_ int tdb_transaction_commit(struct tdb_context *tdb)
|
||||
{
|
||||
const struct tdb_methods *methods;
|
||||
int i;
|
||||
uint32_t i;
|
||||
bool need_repack = false;
|
||||
|
||||
if (tdb->transaction == NULL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user