summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb_ldap
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_ldap
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_ldap')
-rw-r--r--source4/lib/ldb/ldb_ldap/ldb_ldap.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source4/lib/ldb/ldb_ldap/ldb_ldap.c b/source4/lib/ldb/ldb_ldap/ldb_ldap.c
index 25af43c569..510f28a45e 100644
--- a/source4/lib/ldb/ldb_ldap/ldb_ldap.c
+++ b/source4/lib/ldb/ldb_ldap/ldb_ldap.c
@@ -71,7 +71,7 @@ static const char *lldb_option_find(const struct lldb_private *lldb, const char
static int lldb_close(struct ldb_context *ldb)
{
int i, ret = 0;
- struct lldb_private *lldb = ldb->private;
+ struct lldb_private *lldb = ldb->private_data;
if (ldap_unbind(lldb->ldap) != LDAP_SUCCESS) {
ret = -1;
@@ -94,7 +94,7 @@ static int lldb_close(struct ldb_context *ldb)
*/
static int lldb_delete(struct ldb_context *ldb, const char *dn)
{
- struct lldb_private *lldb = ldb->private;
+ struct lldb_private *lldb = ldb->private_data;
int ret = 0;
lldb->last_rc = ldap_delete_s(lldb->ldap, dn);
@@ -204,7 +204,7 @@ static int lldb_search(struct ldb_context *ldb, const char *base,
enum ldb_scope scope, const char *expression,
const char **attrs, struct ldb_message ***res)
{
- struct lldb_private *lldb = ldb->private;
+ struct lldb_private *lldb = ldb->private_data;
int count, msg_count;
LDAPMessage *ldapres, *msg;
@@ -388,7 +388,7 @@ failed:
*/
static int lldb_add(struct ldb_context *ldb, const struct ldb_message *msg)
{
- struct lldb_private *lldb = ldb->private;
+ struct lldb_private *lldb = ldb->private_data;
LDAPMod **mods;
int ret = 0;
@@ -410,7 +410,7 @@ static int lldb_add(struct ldb_context *ldb, const struct ldb_message *msg)
*/
static int lldb_modify(struct ldb_context *ldb, const struct ldb_message *msg)
{
- struct lldb_private *lldb = ldb->private;
+ struct lldb_private *lldb = ldb->private_data;
LDAPMod **mods;
int ret = 0;
@@ -432,7 +432,7 @@ static int lldb_modify(struct ldb_context *ldb, const struct ldb_message *msg)
*/
static const char *lldb_errstring(struct ldb_context *ldb)
{
- struct lldb_private *lldb = ldb->private;
+ struct lldb_private *lldb = ldb->private_data;
return ldap_err2string(lldb->last_rc);
}
@@ -481,7 +481,7 @@ struct ldb_context *lldb_connect(const char *url,
}
ldb->ops = &lldb_ops;
- ldb->private = lldb;
+ ldb->private_data = lldb;
if (options) {
/* take a copy of the options array, so we don't have to rely