X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb2%2Ftest%2Frun-tdb1-endian.c;h=a06bfb6e9906f479a42a55851a54e978b870723f;hp=245b65446c92785978b495287bbcdb545a20a4fd;hb=a446f1d4d161d66bbb19ba2551cf6429a4865964;hpb=c8f6f8c2dea76042f74c02eff048847e62adcca6 diff --git a/ccan/tdb2/test/run-tdb1-endian.c b/ccan/tdb2/test/run-tdb1-endian.c index 245b6544..a06bfb6e 100644 --- a/ccan/tdb2/test/run-tdb1-endian.c +++ b/ccan/tdb2/test/run-tdb1-endian.c @@ -2,7 +2,7 @@ #include #include #include -#include "tdb1-logging.h" +#include "logging.h" int main(int argc, char *argv[]) { @@ -10,9 +10,9 @@ int main(int argc, char *argv[]) TDB_DATA key, data; plan_tests(13); - tdb = tdb1_open_ex("run-endian.tdb", 1024, - TDB_CONVERT, - O_CREAT|O_TRUNC|O_RDWR, 0600, &taplogctx, NULL); + tdb = tdb1_open("run-endian.tdb", 1024, + TDB_CONVERT, + O_CREAT|O_TRUNC|O_RDWR, 0600, &tap_log_attr); ok1(tdb); key.dsize = strlen("hi"); @@ -38,8 +38,8 @@ int main(int argc, char *argv[]) tdb1_close(tdb); /* Reopen: should read it */ - tdb = tdb1_open_ex("run-endian.tdb", 1024, 0, O_RDWR, 0, - &taplogctx, NULL); + tdb = tdb1_open("run-endian.tdb", 1024, 0, O_RDWR, 0, + &tap_log_attr); ok1(tdb); key.dsize = strlen("hi");