diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2011-09-14 07:50:13 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-09-14 07:50:13 +0930 |
commit | f68a56ce8f38cc1768d8c2dca84f456f4ecfc625 (patch) | |
tree | 640d6e029579d212598615727dc03567c2d6476f /lib/tdb2/test/run-tdb1-incompatible.c | |
parent | cbad6e2c140e59a6ec653bcfe773599a57a5042f (diff) | |
download | samba-f68a56ce8f38cc1768d8c2dca84f456f4ecfc625.tar.gz samba-f68a56ce8f38cc1768d8c2dca84f456f4ecfc625.tar.bz2 samba-f68a56ce8f38cc1768d8c2dca84f456f4ecfc625.zip |
tdb2: unify tdb1_store into tdb_store
Switch on the TDB_VERSION1 flag.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 98c754ffe65bc335f66161d6cc8705d4ea2710ec)
Diffstat (limited to 'lib/tdb2/test/run-tdb1-incompatible.c')
-rw-r--r-- | lib/tdb2/test/run-tdb1-incompatible.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tdb2/test/run-tdb1-incompatible.c b/lib/tdb2/test/run-tdb1-incompatible.c index 350c78b2b4..13ec5d826f 100644 --- a/lib/tdb2/test/run-tdb1-incompatible.c +++ b/lib/tdb2/test/run-tdb1-incompatible.c @@ -89,7 +89,7 @@ int main(int argc, char *argv[]) ok1(log_count == 0); d.dptr = (void *)"Hello"; d.dsize = 5; - ok1(tdb1_store(tdb, d, d, TDB_INSERT) == 0); + ok1(tdb_store(tdb, d, d, TDB_INSERT) == TDB_SUCCESS); tdb_close(tdb); /* Should not have marked rwlocks field. */ @@ -134,7 +134,7 @@ int main(int argc, char *argv[]) ok1(log_count == 0); d.dptr = (void *)"Hello"; d.dsize = 5; - ok1(tdb1_store(tdb, d, d, TDB_INSERT) == 0); + ok1(tdb_store(tdb, d, d, TDB_INSERT) == TDB_SUCCESS); tdb_close(tdb); /* Should have marked rwlocks field. */ @@ -183,7 +183,7 @@ int main(int argc, char *argv[]) ok1(log_count == 0); d.dptr = (void *)"Hello"; d.dsize = 5; - ok1(tdb1_store(tdb, d, d, TDB_INSERT) == 0); + ok1(tdb_store(tdb, d, d, TDB_INSERT) == TDB_SUCCESS); tdb_close(tdb); /* FIXME: Should have marked rwlocks field. */ |