diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2011-09-14 07:32:13 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-09-14 07:32:13 +0930 |
commit | e613effeae7c9373c9e635fc708ec2ce29661d4c (patch) | |
tree | d8cdb019f54302de6aa813a62a34e036cf9c7faf /lib/tdb2/test/run-tdb1-endian.c | |
parent | 50484d4bede6b59706457e44a32cbe2d3e9c28d2 (diff) | |
download | samba-e613effeae7c9373c9e635fc708ec2ce29661d4c.tar.gz samba-e613effeae7c9373c9e635fc708ec2ce29661d4c.tar.bz2 samba-e613effeae7c9373c9e635fc708ec2ce29661d4c.zip |
tdb2: make TDB1 code use tdb2's TDB_ERROR and tdb_logerr()
To do this, we make sure that the first few fields of tdb1_context and
tdb_context are the same.
This sweep also fixes up a few paths where we weren't setting
tdb->ecode before our old logging function.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 919937354a331bb964564a11b5a5b80403ff8db9)
Diffstat (limited to 'lib/tdb2/test/run-tdb1-endian.c')
-rw-r--r-- | lib/tdb2/test/run-tdb1-endian.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tdb2/test/run-tdb1-endian.c b/lib/tdb2/test/run-tdb1-endian.c index 1a01de17ab..7691260606 100644 --- a/lib/tdb2/test/run-tdb1-endian.c +++ b/lib/tdb2/test/run-tdb1-endian.c @@ -21,10 +21,10 @@ int main(int argc, char *argv[]) data.dptr = (void *)"world"; ok1(tdb1_store(tdb, key, data, TDB1_MODIFY) < 0); - ok1(tdb1_error(tdb) == TDB1_ERR_NOEXIST); + ok1(tdb_error(tdb) == TDB_ERR_NOEXIST); ok1(tdb1_store(tdb, key, data, TDB1_INSERT) == 0); ok1(tdb1_store(tdb, key, data, TDB1_INSERT) < 0); - ok1(tdb1_error(tdb) == TDB1_ERR_EXISTS); + ok1(tdb_error(tdb) == TDB_ERR_EXISTS); ok1(tdb1_store(tdb, key, data, TDB1_MODIFY) == 0); data = tdb1_fetch(tdb, key); |