]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb/test/run-3G-file.c
strsplit: remove nump argument
[ccan] / ccan / tdb / test / run-3G-file.c
index ea395a9c35bdbdef76ae5abf06f72b689ff1737c..d56aed57bd42a4fd3871c21b791b1f7e3e8ad701 100644 (file)
 #include <ccan/tdb/error.c>
 #include <ccan/tdb/open.c>
 #include <ccan/tdb/check.c>
 #include <ccan/tdb/error.c>
 #include <ccan/tdb/open.c>
 #include <ccan/tdb/check.c>
+#include <ccan/tdb/hash.c>
 #include <ccan/tap/tap.h>
 #include <stdlib.h>
 #include <err.h>
 #include <ccan/tap/tap.h>
 #include <stdlib.h>
 #include <err.h>
+#include "logging.h"
 
 static int tdb_expand_file_sparse(struct tdb_context *tdb,
                                  tdb_off_t size,
 
 static int tdb_expand_file_sparse(struct tdb_context *tdb,
                                  tdb_off_t size,
@@ -73,8 +75,8 @@ int main(int argc, char *argv[])
        struct tdb_record rec;
 
        plan_tests(24);
        struct tdb_record rec;
 
        plan_tests(24);
-       tdb = tdb_open("run-36-file.tdb", 1024, TDB_CLEAR_IF_FIRST,
-                      O_CREAT|O_TRUNC|O_RDWR, 0600);
+       tdb = tdb_open_ex("run-36-file.tdb", 1024, TDB_CLEAR_IF_FIRST,
+                         O_CREAT|O_TRUNC|O_RDWR, 0600, &taplogctx, NULL);
 
        ok1(tdb);
        tdb->methods = &large_io_methods;
 
        ok1(tdb);
        tdb->methods = &large_io_methods;