From ebb3017cf08cc4dad3217db6cea404069b494b47 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 14 Sep 2011 07:33:13 +0930 Subject: tdb2: Make tdb1 share tdb_store flags, struct tdb_data and TDB_MAGIC_FOOD. Signed-off-by: Rusty Russell (Imported from CCAN commit 8a47d50d72ea62e378dc92b150c92c1317c73fa3) --- lib/tdb2/test/run-tdb1-summary.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (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 ccfc0958e1..616c522507 100644 --- a/lib/tdb2/test/run-tdb1-summary.c +++ b/lib/tdb2/test/run-tdb1-summary.c @@ -10,8 +10,8 @@ int main(int argc, char *argv[]) int flags[] = { TDB1_INTERNAL, TDB1_DEFAULT, TDB1_NOMMAP, TDB1_INTERNAL|TDB1_CONVERT, TDB1_CONVERT, TDB1_NOMMAP|TDB1_CONVERT }; - TDB1_DATA key = { (unsigned char *)&j, sizeof(j) }; - TDB1_DATA data = { (unsigned char *)&j, sizeof(j) }; + TDB_DATA key = { (unsigned char *)&j, sizeof(j) }; + TDB_DATA data = { (unsigned char *)&j, sizeof(j) }; char *summary; plan_tests(sizeof(flags) / sizeof(flags[0]) * 14); @@ -26,7 +26,7 @@ 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, TDB1_REPLACE) != 0) + if (tdb1_store(tdb, key, data, TDB_REPLACE) != 0) fail("Storing in tdb"); } -- cgit