X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb2%2Ftest%2Frun-tdb1-corrupt.c;h=373f079512f5689a9b7c420d079b83587ce6268f;hp=f87afd8a6ab7ff210d6963fc4003d98a55145dfd;hb=8bc38cb177928ef739440c32e33a8eaf23a5dd22;hpb=c8c3b3568677e8b0105f84e4ab068c580faf4591 diff --git a/ccan/tdb2/test/run-tdb1-corrupt.c b/ccan/tdb2/test/run-tdb1-corrupt.c index f87afd8a..373f0795 100644 --- a/ccan/tdb2/test/run-tdb1-corrupt.c +++ b/ccan/tdb2/test/run-tdb1-corrupt.c @@ -58,7 +58,7 @@ static void check_test(struct tdb_context *tdb) for (key.dsize = 1; key.dsize <= 5; key.dsize++) { ksize += key.dsize; dsize += data.dsize; - if (tdb1_store(tdb, key, data, TDB_INSERT) != 0) + if (tdb_store(tdb, key, data, TDB_INSERT) != TDB_SUCCESS) abort(); }