1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

python: Use correct function signatures

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-08-01 09:26:27 +12:00 committed by Andrew Bartlett
parent 245044d65d
commit f47aef7743
3 changed files with 5 additions and 4 deletions

View File

@ -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();

View File

@ -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));
}

View File

@ -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);
}