X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb2%2Ftest%2Frun-tdb1-readonly-check.c;h=a764f2da428d68a5b1956237733ba364be808323;hp=6bfa0dc3f5ad4ac434c88c24c5c4b56532094a71;hb=8a47d50d72ea62e378dc92b150c92c1317c73fa3;hpb=919937354a331bb964564a11b5a5b80403ff8db9 diff --git a/ccan/tdb2/test/run-tdb1-readonly-check.c b/ccan/tdb2/test/run-tdb1-readonly-check.c index 6bfa0dc3..a764f2da 100644 --- a/ccan/tdb2/test/run-tdb1-readonly-check.c +++ b/ccan/tdb2/test/run-tdb1-readonly-check.c @@ -9,7 +9,7 @@ int main(int argc, char *argv[]) { struct tdb1_context *tdb; - TDB1_DATA key, data; + TDB_DATA key, data; plan_tests(11); tdb = tdb1_open_ex("run-readonly-check.tdb", 1024, @@ -22,7 +22,7 @@ int main(int argc, char *argv[]) data.dsize = strlen("world"); data.dptr = (void *)"world"; - ok1(tdb1_store(tdb, key, data, TDB1_INSERT) == 0); + ok1(tdb1_store(tdb, key, data, TDB_INSERT) == 0); ok1(tdb1_check(tdb, NULL, NULL) == 0); /* We are also allowed to do a check inside a transaction. */ @@ -34,7 +34,7 @@ int main(int argc, char *argv[]) TDB1_DEFAULT, O_RDONLY, 0, &taplogctx, NULL); ok1(tdb); - ok1(tdb1_store(tdb, key, data, TDB1_MODIFY) == -1); + ok1(tdb1_store(tdb, key, data, TDB_MODIFY) == -1); ok1(tdb_error(tdb) == TDB_ERR_RDONLY); ok1(tdb1_check(tdb, NULL, NULL) == 0); ok1(tdb1_close(tdb) == 0);