tdb2: fix return handling in pytdb wrapper.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 13 Sep 2011 22:43:27 +0000 (08:13 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 13 Sep 2011 22:43:27 +0000 (08:13 +0930)
commitc5c0a4d3315d10921f2d4514724da045edbda296
tree3d5f78273237c1586385d76a027b6e7e76f3dc43
parent2237daed7e4c6c38241bc07383ed1a421abe8d6c
tdb2: fix return handling in pytdb wrapper.

tdb_close() does genuinely return non-zero, not an error code, even in tdb2.
And tdb_exists() returns true or false, not an error code.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
lib/tdb2/pytdb.c