From: Joseph Sutton Date: Mon, 31 Jul 2023 21:26:27 +0000 (+1200) Subject: python: Use correct function signatures X-Git-Tag: tevent-0.16.0~1198 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f47aef77433509a64af63fcf18f849747b62e9f1;p=thirdparty%2Fsamba.git python: Use correct function signatures Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/lib/crypto/py_crypto.c b/lib/crypto/py_crypto.c index 5b3c307057a..35ccc79a99e 100644 --- a/lib/crypto/py_crypto.c +++ b/lib/crypto/py_crypto.c @@ -131,14 +131,14 @@ static PyObject *py_crypto_arcfour_crypt_blob(PyObject *module, PyObject *args) return result; } -static PyObject *py_crypto_set_relax_mode(PyObject *module) +static PyObject *py_crypto_set_relax_mode(PyObject *module, PyObject *Py_UNUSED(ignored)) { GNUTLS_FIPS140_SET_LAX_MODE(); Py_RETURN_NONE; } -static PyObject *py_crypto_set_strict_mode(PyObject *module) +static PyObject *py_crypto_set_strict_mode(PyObject *module, PyObject *Py_UNUSED(ignored)) { GNUTLS_FIPS140_SET_STRICT_MODE(); diff --git a/lib/ldb/pyldb.c b/lib/ldb/pyldb.c index 8981e5ea45c..798db2aff01 100644 --- a/lib/ldb/pyldb.c +++ b/lib/ldb/pyldb.c @@ -494,7 +494,8 @@ static PyObject *py_ldb_dn_get_casefold(PyLdbDnObject *self, return PyUnicode_FromString(ldb_dn_get_casefold(self->dn)); } -static PyObject *py_ldb_dn_get_linearized(PyLdbDnObject *self) +static PyObject *py_ldb_dn_get_linearized(PyLdbDnObject *self, + PyObject *Py_UNUSED(ignored)) { return PyUnicode_FromString(ldb_dn_get_linearized(self->dn)); } diff --git a/source4/param/pyparam.c b/source4/param/pyparam.c index c91b7382ef4..c99d73e3438 100644 --- a/source4/param/pyparam.c +++ b/source4/param/pyparam.c @@ -669,7 +669,7 @@ PyTypeObject PyLoadparmService = { .tp_flags = Py_TPFLAGS_DEFAULT, }; -static PyObject *py_data_dir(PyObject *self) +static PyObject *py_data_dir(PyObject *self, PyObject *Py_UNUSED(ignored)) { return PyUnicode_FromString(dyn_DATADIR); }