tdb: Align integer types
authorVolker Lendecke <vl@samba.org>
Sat, 3 Nov 2018 09:11:26 +0000 (10:11 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 6 Nov 2018 20:52:32 +0000 (21:52 +0100)
tdb->max_dead_records is "int", as is the corresponding parameter to
tdb_set_max_dead(). Not that a signed variable makes any sense, but
this is old code and tdb_set_max_dead() is a public API which we
should not change for this.

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): Tue Nov  6 21:52:32 CET 2018 on sn-devel-144

lib/tdb/common/freelist.c

index 90643862208875b55fdc9e0999c37ac14b597b49..37a4c168533b52e8f91d2aae8b6af974162d4784 100644 (file)
@@ -557,7 +557,7 @@ static bool tdb_alloc_dead(
 
 static void tdb_purge_dead(struct tdb_context *tdb, uint32_t hash)
 {
-       uint32_t max_dead_records = tdb->max_dead_records;
+       int max_dead_records = tdb->max_dead_records;
 
        tdb->max_dead_records = 0;