summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-06-01 19:59:56 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-06-02 09:39:18 +0200
commit6ad27cd7fe3e5f014821953c67ab93dbfed38a60 (patch)
treead5e0534f33caeabbadcffb78999864bdede33c9
parente799de256e418f011a042f999904872fecae4011 (diff)
downloadsamba-6ad27cd7fe3e5f014821953c67ab93dbfed38a60.tar.gz
samba-6ad27cd7fe3e5f014821953c67ab93dbfed38a60.tar.bz2
samba-6ad27cd7fe3e5f014821953c67ab93dbfed38a60.zip
s4:lib/ldb/pyldb_util.c - add a cast to quiet a warning
Jelmer, please fix if it isn't correct.
-rw-r--r--source4/lib/ldb/pyldb_util.c2
1 files changed, 1 insertions, 1 deletions
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;
}