]> granicus.if.org Git - python/commitdiff
avoid a compiler warning about assigning const char * to char *.
authorGregory P. Smith <greg@krypto.org>
Fri, 17 Jan 2014 20:08:49 +0000 (12:08 -0800)
committerGregory P. Smith <greg@krypto.org>
Fri, 17 Jan 2014 20:08:49 +0000 (12:08 -0800)
Modules/_ssl.c

index c34b2000885c82997b2c1b65f1aa8a931d70b63f..499e8ba269fa06ea9a02c8e00bf5570ee32fabe6 100644 (file)
@@ -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);