]> git.ozlabs.org Git - ccan/commit
Wean off TDB_ERRCODE.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 4 Aug 2009 03:52:28 +0000 (13:22 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 4 Aug 2009 03:52:28 +0000 (13:22 +0930)
commitbcf7916c5d694858766869dfd570e525127154a6
tree82c517e9534464ea96e641afd720d5ca74dfd113
parentf9757c15a7b61cd4042c060b9fd0e069cb2c31df
Wean off TDB_ERRCODE.
It was a regrettable hack 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.
Also, we should never set errno, as io.c was doing.
ccan/tdb/freelist.c
ccan/tdb/freelistcheck.c
ccan/tdb/io.c
ccan/tdb/lock.c
ccan/tdb/open.c
ccan/tdb/tdb.c
ccan/tdb/tdb.h
ccan/tdb/transaction.c
ccan/tdb/traverse.c