summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb_ildap/ldb_ildap.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2008-06-14 13:00:53 -0400
committerSimo Sorce <idra@samba.org>2008-06-14 13:00:53 -0400
commit2daf2897d5c70c0efbeba9b827c62700b9a9537c (patch)
treed0236f23f6774f775d2a150361c2f5a9674eaf06 /source4/lib/ldb/ldb_ildap/ldb_ildap.c
parent929adc9efa5cf985f0585214d30d18521aa1a821 (diff)
downloadsamba-2daf2897d5c70c0efbeba9b827c62700b9a9537c.tar.gz
samba-2daf2897d5c70c0efbeba9b827c62700b9a9537c.tar.bz2
samba-2daf2897d5c70c0efbeba9b827c62700b9a9537c.zip
Use a custom init function for samba4 that sets a samba4
specific debug function. By default do not debug, this is the most appropriate action for a library as we cannot assume what stderr is use for in the main app. The main app is responsible to set ev_debug_stderr if they so desire. (This used to be commit e566a2f308ac6fb4b526a744f7059b565670aea5)
Diffstat (limited to 'source4/lib/ldb/ldb_ildap/ldb_ildap.c')
-rw-r--r--source4/lib/ldb/ldb_ildap/ldb_ildap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/lib/ldb/ldb_ildap/ldb_ildap.c b/source4/lib/ldb/ldb_ildap/ldb_ildap.c
index 6b50b2f5eb..478df3662d 100644
--- a/source4/lib/ldb/ldb_ildap/ldb_ildap.c
+++ b/source4/lib/ldb/ldb_ildap/ldb_ildap.c
@@ -758,12 +758,12 @@ static int ildb_connect(struct ldb_context *ldb, const char *url,
module->private_data = ildb;
ildb->module = module;
- event_ctx = ldb_get_opaque(ldb, "EventContext");
+ event_ctx = ldb_get_event_context(ldb);
/* FIXME: We must make the event context an explicit parameter, but we
* need to build the events library separately first. Hack a new event
- * context so that CMD line utilities work until we have libevents for
- * standalone builds ready */
+ * context so that CMD line utilities work until we have them all
+ * converted */
if (event_ctx == NULL) {
event_ctx = event_context_init(NULL);
}