ntvfs/python: Adjust to use of PY_SSIZE_T_CLEAN
authorAndrew Bartlett <abartlet@samba.org>
Mon, 4 Jan 2016 00:07:49 +0000 (13:07 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 7 Jan 2016 22:33:10 +0000 (23:33 +0100)
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>
source4/ntvfs/posix/python/pyposix_eadb.c
source4/ntvfs/posix/python/pyxattr_native.c
source4/ntvfs/posix/python/pyxattr_tdb.c

index db62baff2cc89018081ece9390f71c56dacf567a..a94440be3f0930944a001c2d438a456db5549735 100644 (file)
@@ -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;
index 6ddfe08092157dd5b334c4eb96b3468ebeb596c2..8dd98d26e805e8d0d0c75ff76aaafc9786825c90 100644 (file)
@@ -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, 
index ef3401c79ceefa70bd972f4d5d93a836ee503066..56beedb1e5032ce77642248b617a18c9c15a119b 100644 (file)
@@ -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;