##// END OF EJS Templates
cext: make osutil.c PY_SSIZE_T_CLEAN...
Gregory Szorc -
r42236:668eff08 default
parent child Browse files
Show More
@@ -8,6 +8,7 b''
8 8 */
9 9
10 10 #define _ATFILE_SOURCE
11 #define PY_SSIZE_T_CLEAN
11 12 #include <Python.h>
12 13 #include <errno.h>
13 14 #include <fcntl.h>
@@ -227,7 +228,7 b' static PyObject *make_item(const WIN32_F'
227 228 kind, py_st);
228 229 }
229 230
230 static PyObject *_listdir(char *path, int plen, int wantstat, char *skip)
231 static PyObject *_listdir(char *path, Py_ssize_t plen, int wantstat, char *skip)
231 232 {
232 233 PyObject *rval = NULL; /* initialize - return value */
233 234 PyObject *list;
@@ -1181,7 +1182,8 b' static PyObject *listdir(PyObject *self,'
1181 1182 PyObject *statobj = NULL; /* initialize - optional arg */
1182 1183 PyObject *skipobj = NULL; /* initialize - optional arg */
1183 1184 char *path, *skip = NULL;
1184 int wantstat, plen;
1185 Py_ssize_t plen;
1186 int wantstat;
1185 1187
1186 1188 static char *kwlist[] = {"path", "stat", "skip", NULL};
1187 1189
General Comments 0
You need to be logged in to leave comments. Login now