def fdsend(sock, file, buffer):
cdef void *p
- cdef int len
+ cdef Py_ssize_t len
cdef int rc
PyObject_AsReadBuffer(buffer, &p, &len)
rc = fdpass_send(_getfd(sock), _getfd(file), p, len)
def fdrecv(sock, unsigned size):
cdef void *p
cdef buf
- cdef int len
+ cdef Py_ssize_t len
cdef PyObject *obj
cdef int fd
buf = PyString_FromStringAndSize(NULL, size)