From 6ad27cd7fe3e5f014821953c67ab93dbfed38a60 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Tue, 1 Jun 2010 19:59:56 +0200 Subject: 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(-) (limited to 'source4/lib/ldb') diff --git a/source4/lib/ldb/pyldb_util.c b/source4/lib/ldb/pyldb_util.c index fb06946161..41bcb55bd1 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; } -- cgit