[Python-checkins] cpython (merge 3.3 -> default): avoid a compiler warning about assigning const char * to char *.

gregory.p.smith python-checkins at python.org
Fri Jan 17 21:09:15 CET 2014


http://hg.python.org/cpython/rev/725bc24f5492
changeset:   88530:725bc24f5492
parent:      88528:63fc7af91752
parent:      88529:64401c6656b5
user:        Gregory P. Smith <greg at krypto.org>
date:        Fri Jan 17 12:09:05 2014 -0800
summary:
  avoid a compiler warning about assigning const char * to char *.

files:
  Modules/_ssl.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Modules/_ssl.c b/Modules/_ssl.c
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -1381,7 +1381,7 @@
             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);

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list