summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb_tdb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-04-28 07:05:28 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:51:36 -0500
commit6411aa483f9233af098b4893ad67ebd2fd9d5868 (patch)
tree53f33042ccebca4bb02187d44255a4a5da28f222 /source4/lib/ldb/ldb_tdb
parentee0489fff69533d04318de249aabd8d1d021d285 (diff)
downloadsamba-6411aa483f9233af098b4893ad67ebd2fd9d5868.tar.gz
samba-6411aa483f9233af098b4893ad67ebd2fd9d5868.tar.bz2
samba-6411aa483f9233af098b4893ad67ebd2fd9d5868.zip
r381: make the code more C++ friendly
(This used to be commit 8acecc7f27e25ab876fffffe43ae75b5f77aff77)
Diffstat (limited to 'source4/lib/ldb/ldb_tdb')
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_index.c2
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_search.c4
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_tdb.c16
3 files changed, 11 insertions, 11 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_index.c b/source4/lib/ldb/ldb_tdb/ldb_index.c
index 05ae2bbc14..d4e6c95d63 100644
--- a/source4/lib/ldb/ldb_tdb/ldb_index.c
+++ b/source4/lib/ldb/ldb_tdb/ldb_index.c
@@ -770,7 +770,7 @@ static int re_index(struct tdb_context *tdb, TDB_DATA key, TDB_DATA data, void *
*/
int ltdb_reindex(struct ldb_context *ldb)
{
- struct ltdb_private *ltdb = ldb->private;
+ struct ltdb_private *ltdb = ldb->private_data;
int ret;
/* first traverse the database deleting any @INDEX records */
diff --git a/source4/lib/ldb/ldb_tdb/ldb_search.c b/source4/lib/ldb/ldb_tdb/ldb_search.c
index 9cb5853c94..9a2287e20e 100644
--- a/source4/lib/ldb/ldb_tdb/ldb_search.c
+++ b/source4/lib/ldb/ldb_tdb/ldb_search.c
@@ -237,7 +237,7 @@ void ltdb_search_dn1_free(struct ldb_context *ldb, struct ldb_message *msg)
*/
int ltdb_search_dn1(struct ldb_context *ldb, const char *dn, struct ldb_message *msg)
{
- struct ltdb_private *ltdb = ldb->private;
+ struct ltdb_private *ltdb = ldb->private_data;
int ret;
TDB_DATA tdb_key, tdb_data;
@@ -427,7 +427,7 @@ static int ltdb_search_full(struct ldb_context *ldb,
struct ldb_parse_tree *tree,
const char *attrs[], struct ldb_message ***res)
{
- struct ltdb_private *ltdb = ldb->private;
+ struct ltdb_private *ltdb = ldb->private_data;
int ret;
struct ltdb_search_info sinfo;
diff --git a/source4/lib/ldb/ldb_tdb/ldb_tdb.c b/source4/lib/ldb/ldb_tdb/ldb_tdb.c
index a4eb83a20e..ff0c0a53b7 100644
--- a/source4/lib/ldb/ldb_tdb/ldb_tdb.c
+++ b/source4/lib/ldb/ldb_tdb/ldb_tdb.c
@@ -63,7 +63,7 @@ struct TDB_DATA ltdb_key(const char *dn)
*/
static int ltdb_lock(struct ldb_context *ldb)
{
- struct ltdb_private *ltdb = ldb->private;
+ struct ltdb_private *ltdb = ldb->private_data;
TDB_DATA key;
int ret;
@@ -84,7 +84,7 @@ static int ltdb_lock(struct ldb_context *ldb)
*/
static void ltdb_unlock(struct ldb_context *ldb)
{
- struct ltdb_private *ltdb = ldb->private;
+ struct ltdb_private *ltdb = ldb->private_data;
TDB_DATA key;
key = ltdb_key("LDBLOCK");
@@ -102,7 +102,7 @@ static void ltdb_unlock(struct ldb_context *ldb)
*/
int ltdb_store(struct ldb_context *ldb, const struct ldb_message *msg, int flgs)
{
- struct ltdb_private *ltdb = ldb->private;
+ struct ltdb_private *ltdb = ldb->private_data;
TDB_DATA tdb_key, tdb_data;
int ret;
@@ -164,7 +164,7 @@ static int ltdb_add(struct ldb_context *ldb, const struct ldb_message *msg)
*/
int ltdb_delete_noindex(struct ldb_context *ldb, const char *dn)
{
- struct ltdb_private *ltdb = ldb->private;
+ struct ltdb_private *ltdb = ldb->private_data;
TDB_DATA tdb_key;
int ret;
@@ -357,7 +357,7 @@ static int msg_delete_element(struct ldb_message *msg,
*/
static int ltdb_modify(struct ldb_context *ldb, const struct ldb_message *msg)
{
- struct ltdb_private *ltdb = ldb->private;
+ struct ltdb_private *ltdb = ldb->private_data;
TDB_DATA tdb_key, tdb_data;
struct ldb_message msg2;
int ret, i, j;
@@ -465,7 +465,7 @@ unlock_fail:
*/
static int ltdb_close(struct ldb_context *ldb)
{
- struct ltdb_private *ltdb = ldb->private;
+ struct ltdb_private *ltdb = ldb->private_data;
int ret;
ret = tdb_close(ltdb->tdb);
free(ltdb);
@@ -479,7 +479,7 @@ static int ltdb_close(struct ldb_context *ldb)
*/
static const char *ltdb_errstring(struct ldb_context *ldb)
{
- struct ltdb_private *ltdb = ldb->private;
+ struct ltdb_private *ltdb = ldb->private_data;
return tdb_errorstr(ltdb->tdb);
}
@@ -548,7 +548,7 @@ struct ldb_context *ltdb_connect(const char *url,
return NULL;
}
- ldb->private = ltdb;
+ ldb->private_data = ltdb;
ldb->ops = &ltdb_ops;
return ldb;