From f34890937bd5776fb21f1f6c686e033beb9b8a5c Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Fri, 17 Jan 2014 12:08:49 -0800 Subject: [PATCH] avoid a compiler warning about assigning const char * to char *. --- Modules/_ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_ssl.c b/Modules/_ssl.c index c34b200088..499e8ba269 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -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); -- 2.40.0