X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb%2Ftest%2Frun-nested-traverse.c;h=c58b24c0fafe8a6f3110d138377a2ed467c3fd94;hp=d4e499d7e313e7bb3a98891624087420f2c01d9e;hb=100444225380d3f5ca29424ea54703d308c7c651;hpb=a153d09b979182e8586d4501ea687bcdd466dabc diff --git a/ccan/tdb/test/run-nested-traverse.c b/ccan/tdb/test/run-nested-traverse.c index d4e499d7..c58b24c0 100644 --- a/ccan/tdb/test/run-nested-traverse.c +++ b/ccan/tdb/test/run-nested-traverse.c @@ -11,12 +11,14 @@ #include #include #include +#include #include #undef fcntl #include #include #include #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);