From: Neal Norwitz Date: Sun, 2 Feb 2003 17:08:33 +0000 (+0000) Subject: Fix compiler warning X-Git-Tag: v2.3c1~2115 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=529baf2b576ab739f71dc3a51569d272de241fd9;p=python Fix compiler warning --- diff --git a/Modules/_ssl.c b/Modules/_ssl.c index cfcb8a5763..8fe04283ab 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 31a59f2a0f..00e682985e 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 */);