summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2016-01-04 13:07:49 +1300
committerAndrew Bartlett <abartlet@samba.org>2016-01-07 23:33:10 +0100
commit8bac96de8265b82815276a14aaba3295d19845aa (patch)
treee9aaf7340100b5951df92174cc1ee681ca47b2f9
parent516ec3005a18770bceb25aa6e49799fe407ceff5 (diff)
downloadsamba-8bac96de8265b82815276a14aaba3295d19845aa.tar.gz
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>
-rw-r--r--source4/ntvfs/posix/python/pyposix_eadb.c2
-rw-r--r--source4/ntvfs/posix/python/pyxattr_native.c2
-rw-r--r--source4/ntvfs/posix/python/pyxattr_tdb.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/source4/ntvfs/posix/python/pyposix_eadb.c b/source4/ntvfs/posix/python/pyposix_eadb.c
index db62baff2cc..a94440be3f0 100644
--- a/source4/ntvfs/posix/python/pyposix_eadb.c
+++ b/source4/ntvfs/posix/python/pyposix_eadb.c
@@ -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;
diff --git a/source4/ntvfs/posix/python/pyxattr_native.c b/source4/ntvfs/posix/python/pyxattr_native.c
index 6ddfe080921..8dd98d26e80 100644
--- a/source4/ntvfs/posix/python/pyxattr_native.c
+++ b/source4/ntvfs/posix/python/pyxattr_native.c
@@ -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,
diff --git a/source4/ntvfs/posix/python/pyxattr_tdb.c b/source4/ntvfs/posix/python/pyxattr_tdb.c
index ef3401c79ce..56beedb1e50 100644
--- a/source4/ntvfs/posix/python/pyxattr_tdb.c
+++ b/source4/ntvfs/posix/python/pyxattr_tdb.c
@@ -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;