lib/tdb: wean off TDB_ERRCODE.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 21 Oct 2009 13:39:43 +0000 (00:09 +1030)
committerKarolin Seeger <kseeger@samba.org>
Thu, 26 Nov 2009 10:39:46 +0000 (11:39 +0100)
commit0da8ecaa3181f8bd6e4e0804eb6267f35bae0fcd
tree2c02d006cca3cf8d77e87839ef75f8822474850e
parentb34e3f91dc20d3588f7e661060286fc107d2f16c
lib/tdb: wean off TDB_ERRCODE.

It was a regrettable hack which I used to reduce line count in tdb; in fact it caused confusion as can be seen in this patch.
In particular, ecode now needs to be set before TDB_LOG anyway, and having it exposed in
the header is useless (the struct tdb_context isn't defined, so it's doubly useless).
Also, we should never set errno, as io.c was doing.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(cherry picked from commit 2b13c2108f8b746dbe866fc14dd5e6045b0d12ea)
lib/tdb/common/freelist.c
lib/tdb/common/freelistcheck.c
lib/tdb/common/io.c
lib/tdb/common/lock.c
lib/tdb/common/open.c
lib/tdb/common/tdb.c
lib/tdb/common/transaction.c
lib/tdb/common/traverse.c
lib/tdb/include/tdb.h