summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2003-02-02 17:08:33 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2003-02-02 17:08:33 (GMT)
commit529baf2b576ab739f71dc3a51569d272de241fd9 (patch)
tree80e2d523710c88363bc4b0d6b3f90465166d8fcc /Modules
parent87482ea055c921ffacd704ed41fa41ef6473ad3a (diff)
downloadcpython-529baf2b576ab739f71dc3a51569d272de241fd9.zip
cpython-529baf2b576ab739f71dc3a51569d272de241fd9.tar.gz
cpython-529baf2b576ab739f71dc3a51569d272de241fd9.tar.bz2
Fix compiler warning
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 */);