X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb%2Ftest%2Frun-3G-file.c;h=94639113656d9b6967b46c0949f3006db1fab47a;hp=8b75f2b8eb632e5c82f716dfeea783c5f9b68cd5;hb=d665ff828977d76f8ec6ed53e6aab2e6fa124675;hpb=b2c0ebc6f53b05b222937991f100f8a89701f9b1 diff --git a/ccan/tdb/test/run-3G-file.c b/ccan/tdb/test/run-3G-file.c index 8b75f2b8..94639113 100644 --- a/ccan/tdb/test/run-3G-file.c +++ b/ccan/tdb/test/run-3G-file.c @@ -1,16 +1,17 @@ /* We need this otherwise fcntl locking fails. */ #define _FILE_OFFSET_BITS 64 #define _XOPEN_SOURCE 500 -#include "tdb/tdb.h" -#include "tdb/io.c" -#include "tdb/tdb.c" -#include "tdb/lock.c" -#include "tdb/freelist.c" -#include "tdb/traverse.c" -#include "tdb/transaction.c" -#include "tdb/error.c" -#include "tdb/open.c" -#include "tap/tap.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include @@ -49,9 +50,7 @@ static const struct tdb_methods large_io_methods = { tdb_write, tdb_next_hash_chain, tdb_oob, - tdb_expand_file_sparse, - tdb_brlock, - tdb_brunlock + tdb_expand_file_sparse }; static int test_traverse(struct tdb_context *tdb, TDB_DATA key, TDB_DATA data, @@ -71,7 +70,7 @@ int main(int argc, char *argv[]) TDB_DATA key, orig_data, data; uint32_t hash; tdb_off_t rec_ptr; - struct list_struct rec; + struct tdb_record rec; plan_tests(24); tdb = tdb_open("/tmp/test.tdb", 1024, TDB_CLEAR_IF_FIRST,