Make Py_ssize_t-clean

This commit is contained in:
Thomas Wouters 2006-03-02 00:21:10 +00:00
parent 695934a0ef
commit 26cc63f867
1 changed files with 4 additions and 2 deletions

View File

@ -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];