chiark
/
gitweb
/
~mdw
/
mLib-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
codex.pyx.in: Zap trailing blank line.
[mLib-python]
/
pkbuf.pyx
diff --git
a/pkbuf.pyx
b/pkbuf.pyx
index 67b248fd76af439848e26e141a799ef143a6e3f5..2544aaaf554d7183d539c4510d9d51f7df6caa28 100644
(file)
--- a/
pkbuf.pyx
+++ b/
pkbuf.pyx
@@
-83,7
+83,7
@@
cdef class PacketBuffer:
cdef unsigned char *p
cdef unsigned char *q
cdef size_t n
cdef unsigned char *p
cdef unsigned char *q
cdef size_t n
- PyObject_AsReadBuffer(str, <
void *
*>&p, &len)
+ PyObject_AsReadBuffer(str, <
cvp
*>&p, &len)
while len > 0:
n = pkbuf_free(&me.pk, &q)
if n > len:
while len > 0:
n = pkbuf_free(&me.pk, &q)
if n > len:
@@
-115,7
+115,7
@@
cdef void _pkfunc(unsigned char *p, size_t n, pkbuf *pk,
else:
r = pb.packet(PyString_FromStringAndSize(<char *>p, n))
if r is not None:
else:
r = pb.packet(PyString_FromStringAndSize(<char *>p, n))
if r is not None:
- PyObject_AsReadBuffer(r, &rp, &rn)
+ PyObject_AsReadBuffer(r,
<cvp *>
&rp, &rn)
if rn > n:
raise ValueError, 'remaining buffer too large'
if rn:
if rn > n:
raise ValueError, 'remaining buffer too large'
if rn: