aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography
diff options
context:
space:
mode:
authorAlex Stapleton <alexs@prol.etari.at>2013-12-28 16:28:59 +0000
committerAlex Stapleton <alexs@prol.etari.at>2013-12-28 16:57:26 +0000
commit9020b4845a8667a2f400a0fb1b5138cb8d51eaca (patch)
tree234cd52a7dc6a13159512a7b5d59338f5f820117 /cryptography
parentb50927e8dba16142205684ff9cdeab8b03d57b50 (diff)
downloadcryptography-9020b4845a8667a2f400a0fb1b5138cb8d51eaca.tar.gz
cryptography-9020b4845a8667a2f400a0fb1b5138cb8d51eaca.tar.bz2
cryptography-9020b4845a8667a2f400a0fb1b5138cb8d51eaca.zip
String literals are const char*.
GCC won't whine with -Wall because so much code isn't const correct but writing to a string literal is undefined. -Wwrite-strings is the warning flag to enable to spot these.
Diffstat (limited to 'cryptography')
-rw-r--r--cryptography/hazmat/backends/openssl/opensslv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cryptography/hazmat/backends/openssl/opensslv.py b/cryptography/hazmat/backends/openssl/opensslv.py
index 4e110327..397f4ca2 100644
--- a/cryptography/hazmat/backends/openssl/opensslv.py
+++ b/cryptography/hazmat/backends/openssl/opensslv.py
@@ -17,7 +17,7 @@ INCLUDES = """
TYPES = """
static const int OPENSSL_VERSION_NUMBER;
-static char *const OPENSSL_VERSION_TEXT;
+static const char *const OPENSSL_VERSION_TEXT;
"""
FUNCTIONS = """