diff options
author | Thomas Wouters <thomas@python.org> | 2006-03-02 00:21:10 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2006-03-02 00:21:10 (GMT) |
commit | 26cc63f867237e2d096b9a326d591e6b5c30a771 (patch) | |
tree | 8330b1e3257e7505c35f86d438cf952f95c26bce | |
parent | 695934a0ef4332c12355d356f2188aa5261cbb3c (diff) | |
download | cpython-26cc63f867237e2d096b9a326d591e6b5c30a771.zip cpython-26cc63f867237e2d096b9a326d591e6b5c30a771.tar.gz cpython-26cc63f867237e2d096b9a326d591e6b5c30a771.tar.bz2 |
Make Py_ssize_t-clean
-rw-r--r-- | Modules/fcntlmodule.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/fcntlmodule.c b/Modules/fcntlmodule.c index 4197339..d109e29 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]; |