summaryrefslogtreecommitdiffstats
path: root/Modules/_ssl.c
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2014-01-17 20:08:49 (GMT)
committerGregory P. Smith <greg@krypto.org>2014-01-17 20:08:49 (GMT)
commitf34890937bd5776fb21f1f6c686e033beb9b8a5c (patch)
tree430a74b65e7b955fde35cede3b92de46e1874ce3 /Modules/_ssl.c
parent1093bf2c7fd070eaed7314456c0c06703f6f0f39 (diff)
downloadcpython-f34890937bd5776fb21f1f6c686e033beb9b8a5c.zip
cpython-f34890937bd5776fb21f1f6c686e033beb9b8a5c.tar.gz
cpython-f34890937bd5776fb21f1f6c686e033beb9b8a5c.tar.bz2
avoid a compiler warning about assigning const char * to char *.
Diffstat (limited to 'Modules/_ssl.c')
-rw-r--r--Modules/_ssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index c34b200..499e8ba 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -1167,7 +1167,7 @@ static PyObject *PySSL_cipher (PySSLSocket *self) {
goto fail0;
PyTuple_SET_ITEM(retval, 0, v);
}
- cipher_protocol = SSL_CIPHER_get_version(current);
+ cipher_protocol = (char *) SSL_CIPHER_get_version(current);
if (cipher_protocol == NULL) {
Py_INCREF(Py_None);
PyTuple_SET_ITEM(retval, 1, Py_None);