From: Andrew Tridgell Date: Mon, 23 Aug 2010 02:07:19 +0000 (+1000) Subject: s4-pyregistry: use s4_event_context_init() X-Git-Tag: samba-4.0.0alpha13~834 X-Git-Url: http://git.samba.org/?p=samba.git;a=commitdiff_plain;h=470d87701bfc4d3d58b9cf0c6e5f240bc24707d9 s4-pyregistry: use s4_event_context_init() Pair-Programmed-With: Andrew Bartlett --- diff --git a/source4/lib/registry/pyregistry.c b/source4/lib/registry/pyregistry.c index a3ba6c53511..7f4f8333c68 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);