diff options
author | dumol <dumol@chevah.com> | 2018-05-22 15:19:02 +0300 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2018-05-22 08:19:02 -0400 |
commit | 0a22d486ec9175926aed29a5f4ea963843ebccfa (patch) | |
tree | 1ad64f88d28fbcbcb1a7ec627a0a4cea0e1f37e9 /src/_cffi_src | |
parent | 8ac485d881884764574c60a3c54c7f94308f222e (diff) | |
download | cryptography-0a22d486ec9175926aed29a5f4ea963843ebccfa.tar.gz cryptography-0a22d486ec9175926aed29a5f4ea963843ebccfa.tar.bz2 cryptography-0a22d486ec9175926aed29a5f4ea963843ebccfa.zip |
Fixed build errors on HP-UX. (#4259)
* Fixed build errors on HP-UX.
* PEP 8 style fix.
* No return for void function.
* PEP 8 style fix, take 2.
Diffstat (limited to 'src/_cffi_src')
-rw-r--r-- | src/_cffi_src/build_openssl.py | 2 | ||||
-rw-r--r-- | src/_cffi_src/openssl/crypto.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/_cffi_src/build_openssl.py b/src/_cffi_src/build_openssl.py index 6b15fe4a..180cb779 100644 --- a/src/_cffi_src/build_openssl.py +++ b/src/_cffi_src/build_openssl.py @@ -46,7 +46,7 @@ def _extra_compile_args(platform): When we drop support for CRYPTOGRAPHY_OPENSSL_LESS_THAN_110 we can revisit this. """ - if platform != "win32": + if platform not in ["win32", "hp-ux11"]: return ["-Wconversion", "-Wno-error=sign-conversion"] else: return [] diff --git a/src/_cffi_src/openssl/crypto.py b/src/_cffi_src/openssl/crypto.py index dfff21bb..449fff5e 100644 --- a/src/_cffi_src/openssl/crypto.py +++ b/src/_cffi_src/openssl/crypto.py @@ -143,6 +143,6 @@ void *Cryptography_realloc_wrapper(void *ptr, size_t size, const char *path, } void Cryptography_free_wrapper(void *ptr, const char *path, int line) { - return free(ptr); + free(ptr); } """ |