diff options
author | Volker Lendecke <vl@samba.org> | 2012-12-20 16:36:02 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2013-02-05 13:18:28 +0100 |
commit | 72cd5d5ff664dc46afb3dd6a5ea45a28ef7b8591 (patch) | |
tree | 345e21bb28f13b724fa9ec8ff28b266a2c06ec79 /lib/tdb/common/io.c | |
parent | 71247ec4bdefb3a1b16619f7ea7404bcbafb5b60 (diff) | |
download | samba-72cd5d5ff664dc46afb3dd6a5ea45a28ef7b8591.tar.gz samba-72cd5d5ff664dc46afb3dd6a5ea45a28ef7b8591.tar.bz2 samba-72cd5d5ff664dc46afb3dd6a5ea45a28ef7b8591.zip |
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 <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Feb 5 13:18:28 CET 2013 on sn-devel-104
Diffstat (limited to 'lib/tdb/common/io.c')
-rw-r--r-- | lib/tdb/common/io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tdb/common/io.c b/lib/tdb/common/io.c index 2e0a206c2c..0563635e6f 100644 --- a/lib/tdb/common/io.c +++ b/lib/tdb/common/io.c @@ -204,14 +204,14 @@ static void tdb_next_hash_chain(struct tdb_context *tdb, uint32_t *chain) { uint32_t h = *chain; if (tdb->map_ptr) { - for (;h < tdb->header.hash_size;h++) { + for (;h < tdb->hash_size;h++) { if (0 != *(uint32_t *)(TDB_HASH_TOP(h) + (unsigned char *)tdb->map_ptr)) { break; } } } else { uint32_t off=0; - for (;h < tdb->header.hash_size;h++) { + for (;h < tdb->hash_size;h++) { if (tdb_ofs_read(tdb, TDB_HASH_TOP(h), &off) != 0 || off != 0) { break; } |