]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb2/private.h
tdb2: make TDB1 code use tdb2's TDB_ERROR and tdb_logerr()
[ccan] / ccan / tdb2 / private.h
index 8d961e82c365c6b0f6956fbf1019451c285597f5..f6ed65a90969596e2661995f974a4b8f4fd6bd67 100644 (file)
@@ -336,6 +336,9 @@ struct tdb_context {
                       void *data);
        void *log_data;
 
+       /* Last error we returned. */
+       enum TDB_ERROR last_error;
+
        /* Open flags passed to tdb_open. */
        int open_flags;
 
@@ -375,9 +378,6 @@ struct tdb_context {
        /* Direct access information */
        struct tdb_access_hdr *access;
 
-       /* Last error we returned. */
-       enum TDB_ERROR last_error;
-
        /* The actual file information */
        struct tdb_file *file;
 };