summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ssl.c1
-rw-r--r--Modules/cPickle.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index cfcb8a5..8fe0428 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -64,6 +64,7 @@ typedef struct {
static PyTypeObject PySSL_Type;
static PyObject *PySSL_SSLwrite(PySSLObject *self, PyObject *args);
static PyObject *PySSL_SSLread(PySSLObject *self, PyObject *args);
+static int wait_for_timeout(PySocketSockObject *s, int writing);
#define PySSLObject_Check(v) ((v)->ob_type == &PySSL_Type)
diff --git a/Modules/cPickle.c b/Modules/cPickle.c
index 31a59f2..00e6829 100644
--- a/Modules/cPickle.c
+++ b/Modules/cPickle.c
@@ -2916,7 +2916,7 @@ load_counted_long(Unpicklerobject *self, int size)
along = PyLong_FromLong(0L);
else {
/* Read the raw little-endian bytes & convert. */
- i = self->read_func(self, &(char *)pdata, size);
+ i = self->read_func(self, (char **)&pdata, size);
if (i < 0) return -1;
along = _PyLong_FromByteArray(pdata, (size_t)size,
1 /* little endian */, 1 /* signed */);