From 929adc9efa5cf985f0585214d30d18521aa1a821 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sat, 14 Jun 2008 11:24:17 -0400 Subject: Make up the right dependencies now that ldb depends on libevents (This used to be commit 3b8eec7ca334528cad3cdcd5e3fc5ee555d8d0e0) --- source4/dsdb/samdb/samdb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4/dsdb/samdb/samdb.c') diff --git a/source4/dsdb/samdb/samdb.c b/source4/dsdb/samdb/samdb.c index 9154f5382b..4557b6c9cc 100644 --- a/source4/dsdb/samdb/samdb.c +++ b/source4/dsdb/samdb/samdb.c @@ -25,6 +25,7 @@ #include "librpc/gen_ndr/ndr_netlogon.h" #include "librpc/gen_ndr/ndr_misc.h" #include "librpc/gen_ndr/ndr_security.h" +#include "lib/events/events.h" #include "lib/ldb/include/ldb.h" #include "lib/ldb/include/ldb_errors.h" #include "libcli/security/security.h" @@ -114,7 +115,7 @@ int samdb_copy_template(struct ldb_context *ldb, return LDB_ERR_OPERATIONS_ERROR; } - event_ctx = (struct event_context *)ldb_get_opaque(ldb, "EventContext"); + event_ctx = ldb_get_event_context(ldb); lp_ctx = (struct loadparm_context *)ldb_get_opaque(ldb, "loadparm"); /* FIXME: need to remove this wehn we finally pass the event -- cgit