diff options
author | Noel Power <noel.power@suse.com> | 2019-05-15 10:30:29 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-05-16 17:55:17 +0000 |
commit | 27d99eefe7676669343b9040f550480df6554a6e (patch) | |
tree | 00ddbabf3efa6573932bef3c3138181bf5815941 /lib | |
parent | 51f146de5adbb5a58a528e168e7fe9faa4477880 (diff) | |
download | samba-27d99eefe7676669343b9040f550480df6554a6e.tar.gz |
lib/ldb: Fix incorrect return type for (setter) func type
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ldb/pyldb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ldb/pyldb.c b/lib/ldb/pyldb.c index 0f4c54a6835..cf7779128d4 100644 --- a/lib/ldb/pyldb.c +++ b/lib/ldb/pyldb.c @@ -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; |