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

This commit is contained in:
Gregory P. Smith 2014-01-17 12:09:05 -08:00
commit 83fed26953

View file

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