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:
parent
245044d65d
commit
f47aef7743
@ -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();
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user