mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
ntvfs/python: Adjust to use of PY_SSIZE_T_CLEAN
This changes the type used for # arguments to PyArg_ParseTuple Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
This commit is contained in:
parent
516ec3005a
commit
8bac96de82
@ -39,7 +39,7 @@ static PyObject *py_wrap_setxattr(PyObject *self, PyObject *args)
|
||||
{
|
||||
char *filename, *attribute, *tdbname;
|
||||
DATA_BLOB blob;
|
||||
int blobsize;
|
||||
Py_ssize_t blobsize;
|
||||
NTSTATUS status;
|
||||
TALLOC_CTX *mem_ctx;
|
||||
struct tdb_wrap *eadb;
|
||||
|
@ -38,7 +38,7 @@ static PyObject *py_wrap_setxattr(PyObject *self, PyObject *args)
|
||||
{
|
||||
char *filename, *attribute;
|
||||
int ret = 0;
|
||||
int blobsize;
|
||||
Py_ssize_t blobsize;
|
||||
DATA_BLOB blob;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "sss#", &filename, &attribute, &blob.data,
|
||||
|
@ -43,7 +43,7 @@ static PyObject *py_wrap_setxattr(PyObject *self, PyObject *args)
|
||||
{
|
||||
char *filename, *attribute, *tdbname;
|
||||
DATA_BLOB blob;
|
||||
int blobsize;
|
||||
Py_ssize_t blobsize;
|
||||
int ret;
|
||||
TALLOC_CTX *mem_ctx;
|
||||
struct loadparm_context *lp_ctx;
|
||||
|
Loading…
Reference in New Issue
Block a user