From 72cd5d5ff664dc46afb3dd6a5ea45a28ef7b8591 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 20 Dec 2012 16:36:02 +0100 Subject: tdb: Remove "header" from tdb_context header.hash_size was the only thing we ever referenced outside of tdb_open_ex and its direct callees. So this shrinks the tdb_context by 164 bytes. Signed-off-by: Volker Lendecke Reviewed-by: Stefan Metzmacher Autobuild-User(master): Stefan Metzmacher Autobuild-Date(master): Tue Feb 5 13:18:28 CET 2013 on sn-devel-104 --- lib/tdb/common/freelist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/tdb/common/freelist.c') diff --git a/lib/tdb/common/freelist.c b/lib/tdb/common/freelist.c index 0de1fb4ecf..2c58c6918f 100644 --- a/lib/tdb/common/freelist.c +++ b/lib/tdb/common/freelist.c @@ -139,7 +139,7 @@ left: #endif /* Look left */ - if (offset - sizeof(tdb_off_t) > TDB_DATA_START(tdb->header.hash_size)) { + if (offset - sizeof(tdb_off_t) > TDB_DATA_START(tdb->hash_size)) { tdb_off_t left = offset - sizeof(tdb_off_t); struct tdb_record l; tdb_off_t leftsize; @@ -158,7 +158,7 @@ left: left = offset - leftsize; if (leftsize > offset || - left < TDB_DATA_START(tdb->header.hash_size)) { + left < TDB_DATA_START(tdb->hash_size)) { goto update; } -- cgit