]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb/test/run-endian.c
tdb: spelling fixes
[ccan] / ccan / tdb / test / run-endian.c
index 9ee877dde5090a1bf3a1e550f75fb5cf0f9bacf8..0fae16214814bdabb1e30b1326908361f62af586 100644 (file)
@@ -9,9 +9,11 @@
 #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 "logging.h"
 
 int main(int argc, char *argv[])
 {
@@ -19,8 +21,9 @@ int main(int argc, char *argv[])
        TDB_DATA key, data;
 
        plan_tests(13);
-       tdb = tdb_open("run-endian.tdb", 1024, TDB_CLEAR_IF_FIRST|TDB_CONVERT,
-                      O_CREAT|O_TRUNC|O_RDWR, 0600);
+       tdb = tdb_open_ex("run-endian.tdb", 1024,
+                         TDB_CLEAR_IF_FIRST|TDB_CONVERT,
+                         O_CREAT|O_TRUNC|O_RDWR, 0600, &taplogctx, NULL);
 
        ok1(tdb);
        key.dsize = strlen("hi");
@@ -46,7 +49,8 @@ int main(int argc, char *argv[])
        tdb_close(tdb);
 
        /* Reopen: should read it */
-       tdb = tdb_open("run-endian.tdb", 1024, 0, O_RDWR, 0);
+       tdb = tdb_open_ex("run-endian.tdb", 1024, 0, O_RDWR, 0,
+                         &taplogctx, NULL);
        ok1(tdb);
        
        key.dsize = strlen("hi");