summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/ldb/ldb.i4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/ldb/ldb.i b/source4/lib/ldb/ldb.i
index 3b7a949fb7..9dd8f7c8af 100644
--- a/source4/lib/ldb/ldb.i
+++ b/source4/lib/ldb/ldb.i
@@ -118,7 +118,7 @@ typedef int ldb_error;
if ($1->dn == NULL)
SWIG_exception(SWIG_TypeError, "no dn set");
} else {
- if (SWIG_ConvertPtr($input, &$1, SWIGTYPE_p_ldb_message, 0) != 0)
+ if (SWIG_ConvertPtr($input, (void **)&$1, SWIGTYPE_p_ldb_message, 0) != 0)
return NULL;
}
}
@@ -225,7 +225,7 @@ fail:
%inline {
int ldb_dn_from_pyobject(PyObject *object, ldb_dn **dn)
{
- return SWIG_ConvertPtr(object, dn, SWIGTYPE_p_ldb_dn, 0);
+ return SWIG_ConvertPtr(object, (void **)dn, SWIGTYPE_p_ldb_dn, 0);
}
ldb_msg_element *ldb_msg_element_from_pyobject(PyObject *set_obj, int flags,