]> git.ozlabs.org Git - ccan/commit
tdb2: rework hash.c functions to return enum TDB_ERROR.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 1 Mar 2011 12:49:19 +0000 (23:19 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 1 Mar 2011 12:49:19 +0000 (23:19 +1030)
commitc02f63e60ca4c9778a1e635ffcd07d17fc8bf09d
tree441ce992accfbf70b722c168be096ef34429bb4f
parent323a9473c0aef80b8e18ef0c53529c8dfc29ec45
tdb2: rework hash.c functions to return enum TDB_ERROR.

This time we have to use our tri-value "tdb_bool_err" type to indicate
true, false, or error, which now allows us to correctly handle errors
in key matching (rather than treating it as a non-match).
ccan/tdb2/hash.c
ccan/tdb2/private.h
ccan/tdb2/tdb.c
ccan/tdb2/test/run-15-append.c
ccan/tdb2/traverse.c