From: Gregory P. Smith Date: Fri, 17 Jan 2014 20:08:49 +0000 (-0800) Subject: avoid a compiler warning about assigning const char * to char *. X-Git-Tag: v3.3.4rc1~52 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f34890937bd5776fb21f1f6c686e033beb9b8a5c;p=python avoid a compiler warning about assigning const char * to char *. --- 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);