pylibsmb: Adjust to use of PY_SSIZE_T_CLEAN
authorAndrew Bartlett <abartlet@samba.org>
Mon, 4 Jan 2016 00:04:46 +0000 (13:04 +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_ParseTupleAndKeywords

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
source3/libsmb/pylibsmb.c

index 2d6853ae6e14fd2355185375c6fbbe2a96b288a0..0c5d7e94841ee98be438c542992a66f4222620b9 100644 (file)
@@ -650,7 +650,7 @@ static PyObject *py_cli_write(struct py_cli_state *self, PyObject *args,
        int fnum;
        unsigned mode = 0;
        char *buf;
-       int buflen;
+       Py_ssize_t buflen;
        unsigned long long offset;
        struct tevent_req *req;
        NTSTATUS status;