lib/ldb: Fix incorrect return type for (setter) func type
authorNoel Power <noel.power@suse.com>
Wed, 15 May 2019 09:30:29 +0000 (10:30 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 16 May 2019 17:55:17 +0000 (17:55 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13948

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
lib/ldb/pyldb.c

index 0f4c54a..cf77791 100644 (file)
@@ -204,7 +204,7 @@ static PyObject *py_ldb_control_get_critical(PyLdbControlObject *self,
        return PyBool_FromLong(self->data->critical);
 }
 
-static PyObject *py_ldb_control_set_critical(PyLdbControlObject *self, PyObject *value, void *closure)
+static int py_ldb_control_set_critical(PyLdbControlObject *self, PyObject *value, void *closure)
 {
        if (PyObject_IsTrue(value)) {
                self->data->critical = true;