]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb/test/run-nested-traverse.c
strsplit: remove nump argument
[ccan] / ccan / tdb / test / run-nested-traverse.c
index d4e499d7e313e7bb3a98891624087420f2c01d9e..c58b24c0fafe8a6f3110d138377a2ed467c3fd94 100644 (file)
 #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>
 #undef fcntl
 #include <stdlib.h>
 #include <stdbool.h>
 #include <err.h>
 #include "external-agent.h"
+#include "logging.h"
 
 static struct agent *agent;
 
@@ -65,8 +67,8 @@ int main(int argc, char *argv[])
        if (!agent)
                err(1, "preparing agent");
 
-       tdb = tdb_open("run-nested-traverse.tdb", 1024, TDB_CLEAR_IF_FIRST,
-                      O_CREAT|O_TRUNC|O_RDWR, 0600);
+       tdb = tdb_open_ex("run-nested-traverse.tdb", 1024, TDB_CLEAR_IF_FIRST,
+                         O_CREAT|O_TRUNC|O_RDWR, 0600, &taplogctx, NULL);
        ok1(tdb);
 
        ok1(external_agent_operation(agent, OPEN, tdb_name(tdb)) == SUCCESS);