summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2019-08-04 12:10:03 +0200
committerKarolin Seeger <kseeger@samba.org>2019-08-21 08:40:16 +0000
commitfab20658b9a4d04e2eab89d95b6eb7e04187424d (patch)
treef7ad69d3b0bdd968c9078202b491c6049fed613e /lib
parent38876ad4ef46fc3cf6a12329236918a87c2e2c65 (diff)
downloadsamba-fab20658b9a4d04e2eab89d95b6eb7e04187424d.tar.gz
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> (cherry picked from commit 885ba572efaac6c20388b8e119315c837e8f5236)
Diffstat (limited to 'lib')
-rw-r--r--lib/tdb/common/io.c6
-rw-r--r--lib/tdb/test/run-3G-file.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/tdb/common/io.c b/lib/tdb/common/io.c
index df460176159..06492b1407d 100644
--- a/lib/tdb/common/io.c
+++ b/lib/tdb/common/io.c
@@ -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,
};
diff --git a/lib/tdb/test/run-3G-file.c b/lib/tdb/test/run-3G-file.c
index 748c972284a..79e291b294e 100644
--- a/lib/tdb/test/run-3G-file.c
+++ b/lib/tdb/test/run-3G-file.c
@@ -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
};