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

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


http://hg.python.org/cpython/rev/64401c6656b5
changeset: 88529:64401c6656b5
branch: 3.3
parent: 88527:38333fa7dfe4
user: Gregory P. Smith <greg at krypto.org>
date: Fri Jan 17 12:08:49 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
@@ -1167,7 +1167,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

AltStyle によって変換されたページ (->オリジナル) /