From 6ad27cd7fe3e5f014821953c67ab93dbfed38a60 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Matthias=20Dieter=20Walln=C3=B6fer?= Date: Tue, 1 Jun 2010 19:59:56 +0200 Subject: [PATCH] s4:lib/ldb/pyldb_util.c - add a cast to quiet a warning Jelmer, please fix if it isn't correct. --- source4/lib/ldb/pyldb_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/lib/ldb/pyldb_util.c b/source4/lib/ldb/pyldb_util.c index fb069461617..41bcb55bd15 100644 --- a/source4/lib/ldb/pyldb_util.c +++ b/source4/lib/ldb/pyldb_util.c @@ -71,7 +71,7 @@ bool PyObject_AsDn(TALLOC_CTX *mem_ctx, PyObject *object, if (PyLdb_Dn_Type == NULL) return false; - if (PyObject_TypeCheck(object, PyLdb_Dn_Type)) { + if (PyObject_TypeCheck(object, (PyTypeObject *) PyLdb_Dn_Type)) { *dn = PyLdbDn_AsDn(object); return true; } -- 2.11.4.GIT