From e541cc54f41ff8ed88047b3533a5615beec0dbe7 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 25 Nov 2007 20:12:08 +0100 Subject: [PATCH] r26119: Fix warnings. (This used to be commit 38a6522e44938ae05356916182d6c3bb1b6e881b) --- source4/lib/ldb/ldb.i | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source4/lib/ldb/ldb.i b/source4/lib/ldb/ldb.i index 3b7a949fb7e..9dd8f7c8afe 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,