mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
avoid a compiler warning about assigning const char * to char *.
This commit is contained in:
parent
1093bf2c7f
commit
f34890937b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue