]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb2/test/run-tdb1-nested-traverse.c
tdb2: make tdb1_open use attributes for logging, hash function.
[ccan] / ccan / tdb2 / test / run-tdb1-nested-traverse.c
index 3d15082a0359b306cfb68c6a2da4e7e49038bc33..1fc8d092773200a657c940970fecc5dae6bcc773 100644 (file)
@@ -7,7 +7,7 @@
 #include <stdbool.h>
 #include <err.h>
 #include "tdb1-external-agent.h"
-#include "tdb1-logging.h"
+#include "logging.h"
 
 static struct agent *agent;
 
@@ -56,8 +56,8 @@ int main(int argc, char *argv[])
        if (!agent)
                err(1, "preparing agent");
 
-       tdb = tdb1_open_ex("run-nested-traverse.tdb", 1024, TDB_DEFAULT,
-                         O_CREAT|O_TRUNC|O_RDWR, 0600, &taplogctx, NULL);
+       tdb = tdb1_open("run-nested-traverse.tdb", 1024, TDB_DEFAULT,
+                       O_CREAT|O_TRUNC|O_RDWR, 0600, &tap_log_attr);
        ok1(tdb);
 
        ok1(external_agent_operation1(agent, OPEN, tdb->name) == SUCCESS);