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

Skip to content

Commit 83fed26

Browse files
committed
avoid a compiler warning about assigning const char * to char *.
2 parents 4cfbac8 + f348909 commit 83fed26

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
@@ -1381,7 +1381,7 @@ static PyObject *PySSL_cipher (PySSLSocket *self) {
13811381
goto fail0;
13821382
PyTuple_SET_ITEM(retval, 0, v);
13831383
}
1384-
cipher_protocol = SSL_CIPHER_get_version(current);
1384+
cipher_protocol = (char *) SSL_CIPHER_get_version(current);
13851385
if (cipher_protocol == NULL) {
13861386
Py_INCREF(Py_None);
13871387
PyTuple_SET_ITEM(retval, 1, Py_None);

0 commit comments

Comments
 (0)