X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftdb2%2Ftest%2Frun-tdb1-readonly-check.c;fp=ccan%2Ftdb2%2Ftest%2Frun-tdb1-readonly-check.c;h=471f813da24159052969a64cd88aa68e3606b6c2;hb=6bc8ea012391198bc3898ae2937558b60dd55906;hp=6e1b57323c7f05db1c62f73b2a02289b759f1d3a;hpb=3352e4e947777d4a90a2dd4f3037e1e494231b25;p=ccan diff --git a/ccan/tdb2/test/run-tdb1-readonly-check.c b/ccan/tdb2/test/run-tdb1-readonly-check.c index 6e1b5732..471f813d 100644 --- a/ccan/tdb2/test/run-tdb1-readonly-check.c +++ b/ccan/tdb2/test/run-tdb1-readonly-check.c @@ -31,7 +31,7 @@ int main(int argc, char *argv[]) ok1(tdb1_check(tdb, NULL, NULL) == 0); /* We are also allowed to do a check inside a transaction. */ - ok1(tdb1_transaction_start(tdb) == 0); + ok1(tdb_transaction_start(tdb) == TDB_SUCCESS); ok1(tdb1_check(tdb, NULL, NULL) == 0); ok1(tdb_close(tdb) == 0);