]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb/test/run-3G-file.c
tdb: new test for dying during a transaction.
[ccan] / ccan / tdb / test / run-3G-file.c
index ba858c4d59fce5afe7ce047bc2eac89fa2750e17..0e24e890562f7ad8ad6e2f71006b9cb2facc7601 100644 (file)
@@ -10,6 +10,7 @@
 #include <ccan/tdb/transaction.c>
 #include <ccan/tdb/error.c>
 #include <ccan/tdb/open.c>
+#include <ccan/tdb/check.c>
 #include <ccan/tap/tap.h>
 #include <stdlib.h>
 #include <err.h>
@@ -71,7 +72,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,