avoid a compiler warning about assigning const char * to char *.

This commit is contained in:
Gregory P. Smith 2014-01-17 12:08:49 -08:00
parent 1093bf2c7f
commit f34890937b

View file

@ -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);