diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-06-18 22:30:26 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-06-19 05:38:05 +0200 |
commit | c3dcdf08f3472748c9e7984488398064abcd454a (patch) | |
tree | 3c7ea8afbb00cfae914bd7011d0a4b1321764133 /lib/tdb2/check.c | |
parent | cab6e116786641e28747de3f70c8cd89ba17673f (diff) | |
download | samba-c3dcdf08f3472748c9e7984488398064abcd454a.tar.gz samba-c3dcdf08f3472748c9e7984488398064abcd454a.tar.bz2 samba-c3dcdf08f3472748c9e7984488398064abcd454a.zip |
TDB2: more internal cleanups after TDB1 compatibility removal.
This eliminates the separate tdb2 substructure, and makes some
tdb1-required functions static.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'lib/tdb2/check.c')
-rw-r--r-- | lib/tdb2/check.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/tdb2/check.c b/lib/tdb2/check.c index e6c815815c..4b589b6ee1 100644 --- a/lib/tdb2/check.c +++ b/lib/tdb2/check.c @@ -497,10 +497,10 @@ static enum TDB_ERROR check_free(struct tdb_context *tdb, } - ecode = tdb->tdb2.io->oob(tdb, off, - frec_len(frec) - + sizeof(struct tdb_used_record), - false); + ecode = tdb->io->oob(tdb, off, + frec_len(frec) + + sizeof(struct tdb_used_record), + false); if (ecode != TDB_SUCCESS) { return ecode; } @@ -606,7 +606,7 @@ tdb_off_t dead_space(struct tdb_context *tdb, tdb_off_t off) for (len = 0; off + len < tdb->file->map_size; len++) { char c; - ecode = tdb->tdb2.io->tread(tdb, off, &c, 1); + ecode = tdb->io->tread(tdb, off, &c, 1); if (ecode != TDB_SUCCESS) { return TDB_ERR_TO_OFF(ecode); } |