]> granicus.if.org Git - python/commitdiff
Fix compiler warning
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 2 Feb 2003 17:08:33 +0000 (17:08 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 2 Feb 2003 17:08:33 +0000 (17:08 +0000)
Modules/_ssl.c
Modules/cPickle.c

index cfcb8a5763b495c8736f4bd7bf2fe3a646915d1b..8fe04283ab5037aae646d7f8eb4b422858e2e569 100644 (file)
@@ -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)
 
index 31a59f2a0fb683b1483e5c1cafc5bae4ced2db93..00e682985e6eb73a867956852681bb6dd1c0b803 100644 (file)
@@ -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 */);