summaryrefslogtreecommitdiff
path: root/lib/util
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-06-20 18:40:31 +0930
committerRusty Russell <rusty@rustcorp.com.au>2011-06-20 11:18:35 +0200
commit058c4f84924c07b88ccaf3d617f3abff797a7cc8 (patch)
treec9ea7b1331a55fb73f832203dd9f643b7c216fd2 /lib/util
parent0e4c358e2710580d5aeb439d767c87aaf4c0f2f3 (diff)
downloadsamba-058c4f84924c07b88ccaf3d617f3abff797a7cc8.tar.gz
samba-058c4f84924c07b88ccaf3d617f3abff797a7cc8.tar.bz2
samba-058c4f84924c07b88ccaf3d617f3abff797a7cc8.zip
tdb_fetch_compat: use instead of tdb_fetch.
This is a noop for tdb1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'lib/util')
-rw-r--r--lib/util/util_tdb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/util/util_tdb.c b/lib/util/util_tdb.c
index 33615854bd..2dd5f9dd5f 100644
--- a/lib/util/util_tdb.c
+++ b/lib/util/util_tdb.c
@@ -111,7 +111,7 @@ int32_t tdb_fetch_int32_byblob(struct tdb_context *tdb, TDB_DATA key)
TDB_DATA data;
int32_t ret;
- data = tdb_fetch(tdb, key);
+ data = tdb_fetch_compat(tdb, key);
if (!data.dptr || data.dsize != sizeof(int32_t)) {
SAFE_FREE(data.dptr);
return -1;
@@ -168,7 +168,7 @@ bool tdb_fetch_uint32_byblob(struct tdb_context *tdb, TDB_DATA key, uint32_t *va
{
TDB_DATA data;
- data = tdb_fetch(tdb, key);
+ data = tdb_fetch_compat(tdb, key);
if (!data.dptr || data.dsize != sizeof(uint32_t)) {
SAFE_FREE(data.dptr);
return false;
@@ -240,7 +240,7 @@ TDB_DATA tdb_fetch_bystring(struct tdb_context *tdb, const char *keystr)
{
TDB_DATA key = string_term_tdb_data(keystr);
- return tdb_fetch(tdb, key);
+ return tdb_fetch_compat(tdb, key);
}
/****************************************************************************