From 470d87701bfc4d3d58b9cf0c6e5f240bc24707d9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 23 Aug 2010 12:07:19 +1000 Subject: s4-pyregistry: use s4_event_context_init() Pair-Programmed-With: Andrew Bartlett --- source4/lib/registry/pyregistry.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source4/lib/registry/pyregistry.c b/source4/lib/registry/pyregistry.c index a3ba6c5351..7f4f8333c6 100644 --- a/source4/lib/registry/pyregistry.c +++ b/source4/lib/registry/pyregistry.c @@ -19,10 +19,10 @@ #include #include "includes.h" -#include #include "libcli/util/pyerrors.h" #include "lib/registry/registry.h" #include "lib/talloc/pytalloc.h" +#include "lib/events/events.h" #include "auth/credentials/pycredentials.h" #include "param/pyparam.h" @@ -361,7 +361,7 @@ static PyObject *py_open_ldb_file(PyObject *self, PyObject *args, PyObject *kwar session_info = NULL; /* FIXME */ result = reg_open_ldb_file(NULL, location, session_info, credentials, - tevent_context_init(NULL), lp_ctx, &key); + s4_event_context_init(NULL), lp_ctx, &key); PyErr_WERROR_IS_ERR_RAISE(result); return py_talloc_steal(&PyHiveKey, key); -- cgit