1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

r26119: Fix warnings.

(This used to be commit 38a6522e44)
This commit is contained in:
Jelmer Vernooij 2007-11-25 20:12:08 +01:00 committed by Stefan Metzmacher
parent 119abbf6b2
commit e541cc54f4

View File

@ -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,