]> git.ozlabs.org Git - ccan/commit
tdb2: Make TDB1 use the same tdb_hash() wrapper as TDB2
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 05:57:16 +0000 (15:27 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 05:57:16 +0000 (15:27 +0930)
commit3e46dde21261966941469a6c75e1b45cd2d26324
tree36e27c50931bb0e21bf96d9d5747b91900b049f4
parent8458811a4126c22635b974718bfbf2876c893c37
tdb2: Make TDB1 use the same tdb_hash() wrapper as TDB2

This means converting the tdb1 inbuilt hash functions to the
tdb2-style, so they return 64 bit.  We truncate to 32 bit everywhere
but in tdb_check() which needs to do so explicitly.
12 files changed:
ccan/tdb2/private.h
ccan/tdb2/tdb1.h
ccan/tdb2/tdb1_check.c
ccan/tdb2/tdb1_hash.c
ccan/tdb2/tdb1_lock.c
ccan/tdb2/tdb1_open.c
ccan/tdb2/tdb1_private.h
ccan/tdb2/tdb1_tdb.c
ccan/tdb2/tdb1_traverse.c
ccan/tdb2/test/run-tdb1-3G-file.c
ccan/tdb2/test/run-tdb1-incompatible.c
ccan/tdb2/test/run-tdb1-wronghash-fail.c