tdb2: rename ->read and ->write functions.
[ccan] / ccan / tdb2 / check.c
index 5a238a1c48274c507511518bea9d060daaa2e8de..4da81dbbbb53fa68ab1031fabaaccbc95f3dca2a 100644 (file)
@@ -512,7 +512,7 @@ size_t dead_space(struct tdb_context *tdb, tdb_off_t off)
 
        for (len = 0; off + len < tdb->map_size; len++) {
                char c;
-               if (tdb->methods->read(tdb, off, &c, 1))
+               if (tdb->methods->tread(tdb, off, &c, 1))
                        return 0;
                if (c != 0 && c != 0x43)
                        break;