From: Thomas Wouters Date: Thu, 2 Mar 2006 00:21:10 +0000 (+0000) Subject: Make Py_ssize_t-clean X-Git-Tag: v2.5a0~411 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=26cc63f867237e2d096b9a326d591e6b5c30a771;p=python Make Py_ssize_t-clean --- diff --git a/Modules/fcntlmodule.c b/Modules/fcntlmodule.c index 4197339e2f..d109e29e7c 100644 --- a/Modules/fcntlmodule.c +++ b/Modules/fcntlmodule.c @@ -1,6 +1,8 @@ /* fcntl module */ +#define PY_SSIZE_T_CLEAN + #include "Python.h" #ifdef HAVE_SYS_FILE_H @@ -35,7 +37,7 @@ fcntl_fcntl(PyObject *self, PyObject *args) int arg; int ret; char *str; - int len; + Py_ssize_t len; char buf[1024]; if (PyArg_ParseTuple(args, "O&is#:fcntl", @@ -98,7 +100,7 @@ fcntl_ioctl(PyObject *self, PyObject *args) int arg; int ret; char *str; - int len; + Py_ssize_t len; int mutate_arg = 1; char buf[1024];