]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb/tdb.h
Wean off TDB_ERRCODE.
[ccan] / ccan / tdb / tdb.h
index 80bf89617e7d2dcdf13f23a82d047c340ec800ba..5ab724031dc5bebeccc920bfc6142a542bb39bc0 100644 (file)
@@ -57,8 +57,6 @@ extern "C" {
 #define TDB_VOLATILE   256 /* Activate the per-hashchain freelist, default 5 */
 #define TDB_NO_NESTING 512 /* Dont allow transaction nesting */
 
-#define TDB_ERRCODE(code, ret) ((tdb->ecode = (code)), ret)
-
 /* error codes */
 enum TDB_ERROR {TDB_SUCCESS=0, TDB_ERR_CORRUPT, TDB_ERR_IO, TDB_ERR_LOCK, 
                TDB_ERR_OOM, TDB_ERR_EXISTS, TDB_ERR_NOLOCK, TDB_ERR_LOCK_TIMEOUT,