summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/pyldb.h
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-12-21 04:36:16 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-12-21 04:36:16 +0100
commiteeb25cf548457b9c5a880252d2807be99f5e31d6 (patch)
tree7893b5f8a126269f9926ec06f4cb0fd2bc66ca15 /source4/lib/ldb/pyldb.h
parentbfb29e94b1e9cbbbca4dcfbbad171ba10e09ce07 (diff)
downloadsamba-eeb25cf548457b9c5a880252d2807be99f5e31d6.tar.gz
samba-eeb25cf548457b9c5a880252d2807be99f5e31d6.tar.bz2
samba-eeb25cf548457b9c5a880252d2807be99f5e31d6.zip
Fix more introduced regressions in new bindings.
Diffstat (limited to 'source4/lib/ldb/pyldb.h')
-rw-r--r--source4/lib/ldb/pyldb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/pyldb.h b/source4/lib/ldb/pyldb.h
index c71f1afc72..4ffc21325a 100644
--- a/source4/lib/ldb/pyldb.h
+++ b/source4/lib/ldb/pyldb.h
@@ -56,7 +56,7 @@ struct ldb_message *PyLdbMessage_AsMessage(PyObject *obj);
typedef py_talloc_Object PyLdbModuleObject;
PyAPI_DATA(PyTypeObject) PyLdbModule;
PyObject *PyLdbModule_FromModule(struct ldb_module *mod);
-#define PyLdbModule_AsModule(pyobj) py_talloc_get_type(pyobj, struct ldb_module)
+#define PyLdbModule_AsModule(pyobj) ((struct ldb_module *)py_talloc_get_ptr(pyobj))
typedef py_talloc_Object PyLdbMessageElementObject;
PyAPI_DATA(PyTypeObject) PyLdbMessageElement;