]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb2/test/run-30-exhaust-before-expand.c
tdb2: merge tdb1_context into tdb_context.
[ccan] / ccan / tdb2 / test / run-30-exhaust-before-expand.c
index 2386f85f26fb8a817a4c181d5b53ea9ca7456d93..db391e7e59c4b391358366633eb7f6f76e533db0 100644 (file)
@@ -1,11 +1,4 @@
-#include <ccan/tdb2/tdb.c>
-#include <ccan/tdb2/open.c>
-#include <ccan/tdb2/free.c>
-#include <ccan/tdb2/lock.c>
-#include <ccan/tdb2/io.c>
-#include <ccan/tdb2/check.c>
-#include <ccan/tdb2/hash.c>
-#include <ccan/tdb2/transaction.c>
+#include "tdb2-source.h"
 #include <ccan/tap/tap.h>
 #include <err.h>
 #include "logging.h"
@@ -16,7 +9,7 @@ static bool empty_freetable(struct tdb_context *tdb)
        unsigned int i;
 
        /* Now, free table should be completely exhausted in zone 0 */
-       if (tdb_read_convert(tdb, tdb->ftable_off, &ftab, sizeof(ftab)) != 0)
+       if (tdb_read_convert(tdb, tdb->tdb2.ftable_off, &ftab, sizeof(ftab)) != 0)
                abort();
 
        for (i = 0; i < sizeof(ftab.buckets)/sizeof(ftab.buckets[0]); i++) {