]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb/check.c
tdb: fix tdb_check() on other-endian tdbs.
[ccan] / ccan / tdb / check.c
index a9a9ece0da37c01eb87c0dbf3e4ac6ee05250d07..53fb286613a3e829e8f2aa159109124c3e182503 100644 (file)
@@ -30,7 +30,7 @@ static bool tdb_check_header(struct tdb_context *tdb, tdb_off_t *recovery)
 {
        struct tdb_header hdr;
 
-       if (tdb->methods->tdb_read(tdb, 0, &hdr, sizeof(hdr), DOCONV()) == -1)
+       if (tdb->methods->tdb_read(tdb, 0, &hdr, sizeof(hdr), 0) == -1)
                return false;
        if (strcmp(hdr.magic_food, TDB_MAGIC_FOOD) != 0)
                goto corrupt;