lib/tdb: wean off TDB_ERRCODE.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 21 Oct 2009 13:39:43 +0000 (00:09 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 21 Oct 2009 13:39:43 +0000 (00:09 +1030)
commitb77f41d58b05101e02d8ac0e54cb0e30807d89c2
tree9ec20b8f8959ddd0e9338cd5d71e4a31b61fbc41
parent703004340c3e0f43f741bd368d2525cfd187d590
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>
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