diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2011-09-14 07:33:13 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-09-14 07:33:13 +0930 |
commit | ebb3017cf08cc4dad3217db6cea404069b494b47 (patch) | |
tree | fd4ce2c81bc4d7f513aea07f02d289b5daa94f1a /lib/tdb2/test/run-tdb1-summary.c | |
parent | e613effeae7c9373c9e635fc708ec2ce29661d4c (diff) | |
download | samba-ebb3017cf08cc4dad3217db6cea404069b494b47.tar.gz samba-ebb3017cf08cc4dad3217db6cea404069b494b47.tar.bz2 samba-ebb3017cf08cc4dad3217db6cea404069b494b47.zip |
tdb2: Make tdb1 share tdb_store flags, struct tdb_data and TDB_MAGIC_FOOD.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 8a47d50d72ea62e378dc92b150c92c1317c73fa3)
Diffstat (limited to 'lib/tdb2/test/run-tdb1-summary.c')
-rw-r--r-- | lib/tdb2/test/run-tdb1-summary.c | 6 |
1 files changed, 3 insertions, 3 deletions
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"); } |