From ffc75363307a25c27dbdd52eb08bd54964416650 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 1 Mar 2016 09:32:56 +1300 Subject: pyauth: Use pytalloc_BaseObject_PyType_Ready() This changes pyauth to use talloc.BaseObject() just like the PIDL output Signed-off-by: Andrew Bartlett Reviewed-by: Garming Sam --- source4/auth/pyauth.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/source4/auth/pyauth.c b/source4/auth/pyauth.c index 37f19fa2421..61db907b902 100644 --- a/source4/auth/pyauth.c +++ b/source4/auth/pyauth.c @@ -292,7 +292,6 @@ static PyObject *py_auth_context_new(PyTypeObject *type, PyObject *args, PyObjec static PyTypeObject PyAuthContext = { .tp_name = "AuthContext", - .tp_basicsize = sizeof(pytalloc_Object), .tp_flags = Py_TPFLAGS_DEFAULT, .tp_new = py_auth_context_new, }; @@ -308,11 +307,7 @@ void initauth(void) { PyObject *m; - PyAuthContext.tp_base = pytalloc_GetObjectType(); - if (PyAuthContext.tp_base == NULL) - return; - - if (PyType_Ready(&PyAuthContext) < 0) + if (pytalloc_BaseObject_PyType_Ready(&PyAuthContext) < 0) return; m = Py_InitModule3("auth", py_auth_methods, -- cgit v1.2.1