Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f348909

Browse files
committed
avoid a compiler warning about assigning const char * to char *.
1 parent 1093bf2 commit f348909

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_ssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,7 @@ static PyObject *PySSL_cipher (PySSLSocket *self) {
11671167
goto fail0;
11681168
PyTuple_SET_ITEM(retval, 0, v);
11691169
}
1170-
cipher_protocol = SSL_CIPHER_get_version(current);
1170+
cipher_protocol = (char *) SSL_CIPHER_get_version(current);
11711171
if (cipher_protocol == NULL) {
11721172
Py_INCREF(Py_None);
11731173
PyTuple_SET_ITEM(retval, 1, Py_None);

0 commit comments

Comments
 (0)