summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2014-01-17 20:09:05 (GMT)
committerGregory P. Smith <greg@krypto.org>2014-01-17 20:09:05 (GMT)
commit83fed26953bd233a6479a6742abd1f2b7e6011f5 (patch)
tree3473e0833d650f1613f3422a24fc65b88780998a /Modules
parent4cfbac80bd6545ff9f8425fa30a7d25bb9ba5142 (diff)
parentf34890937bd5776fb21f1f6c686e033beb9b8a5c (diff)
downloadcpython-83fed26953bd233a6479a6742abd1f2b7e6011f5.zip
cpython-83fed26953bd233a6479a6742abd1f2b7e6011f5.tar.gz
cpython-83fed26953bd233a6479a6742abd1f2b7e6011f5.tar.bz2
avoid a compiler warning about assigning const char * to char *.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index 2e3c5b1..813c926 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -1381,7 +1381,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);