1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

tdb: Rename tdb_oob() to tdb_notrans_oob()

tdb_oob() will become a public function encapsulating the pointer
dereferences.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2019-08-04 12:10:03 +02:00 committed by Jeremy Allison
parent fe9b12b274
commit 885ba572ef
2 changed files with 4 additions and 4 deletions

View File

@ -136,8 +136,8 @@ static int tdb_fstat(struct tdb_context *tdb, struct stat *buf)
see if the database has been expanded by someone else and expand
if necessary
*/
static int tdb_oob(struct tdb_context *tdb, tdb_off_t off, tdb_len_t len,
int probe)
static int tdb_notrans_oob(
struct tdb_context *tdb, tdb_off_t off, tdb_len_t len, int probe)
{
struct stat st;
if (len + off < len) {
@ -782,7 +782,7 @@ static const struct tdb_methods io_methods = {
tdb_read,
tdb_write,
tdb_next_hash_chain,
tdb_oob,
tdb_notrans_oob,
tdb_expand_file,
};

View File

@ -48,7 +48,7 @@ static const struct tdb_methods large_io_methods = {
tdb_read,
tdb_write,
tdb_next_hash_chain,
tdb_oob,
tdb_notrans_oob,
tdb_expand_file_sparse
};