From f68a56ce8f38cc1768d8c2dca84f456f4ecfc625 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 14 Sep 2011 07:50:13 +0930 Subject: tdb2: unify tdb1_store into tdb_store Switch on the TDB_VERSION1 flag. Signed-off-by: Rusty Russell (Imported from CCAN commit 98c754ffe65bc335f66161d6cc8705d4ea2710ec) --- lib/tdb2/test/run-tdb1-summary.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/tdb2/test/run-tdb1-summary.c') diff --git a/lib/tdb2/test/run-tdb1-summary.c b/lib/tdb2/test/run-tdb1-summary.c index 45b4737286..5107b8e436 100644 --- a/lib/tdb2/test/run-tdb1-summary.c +++ b/lib/tdb2/test/run-tdb1-summary.c @@ -26,8 +26,10 @@ int main(int argc, char *argv[]) for (j = 0; j < 500; j++) { /* Make sure padding varies to we get some graphs! */ data.dsize = j % (sizeof(j) + 1); - if (tdb1_store(tdb, key, data, TDB_REPLACE) != 0) + if (tdb_store(tdb, key, data, TDB_REPLACE) + != TDB_SUCCESS) { fail("Storing in tdb"); + } } summary = tdb1_summary(tdb); -- cgit