Wean off TDB_ERRCODE.
[ccan] / ccan / tdb / transaction.c
index 0944bb36e98a6a3af4e32ac2052e512483bc4311..6909c261a2808ca50c33cb413a5597cde8d4cbd5 100644 (file)
@@ -385,7 +385,8 @@ static int transaction_oob(struct tdb_context *tdb, tdb_off_t len, int probe)
        if (len <= tdb->map_size) {
                return 0;
        }
-       return TDB_ERRCODE(TDB_ERR_IO, -1);
+       tdb->ecode = TDB_ERR_IO;
+       return -1;
 }
 
 /*