Module Name:    src
Committed By:   christos
Date:           Sun Mar 22 02:30:16 UTC 2020

Modified Files:
        src/crypto/external/bsd/openssl/dist/include/openssl: safestack.h

Log Message:
Add more casts.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 \
    src/crypto/external/bsd/openssl/dist/include/openssl/safestack.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/crypto/external/bsd/openssl/dist/include/openssl/safestack.h
diff -u src/crypto/external/bsd/openssl/dist/include/openssl/safestack.h:1.5 src/crypto/external/bsd/openssl/dist/include/openssl/safestack.h:1.6
--- src/crypto/external/bsd/openssl/dist/include/openssl/safestack.h:1.5	Sat Mar 21 20:53:10 2020
+++ src/crypto/external/bsd/openssl/dist/include/openssl/safestack.h	Sat Mar 21 22:30:15 2020
@@ -28,7 +28,7 @@ extern "C" {
     { \
         return OPENSSL_sk_num((const OPENSSL_STACK *)(const void *)sk); \
     } \
-    static ossl_unused ossl_inline t2 *sk_##t1##_value(const STACK_OF(t1) *sk, int idx) \
+    static ossl_unused ossl_inline t2 *sk_##t1##_value(const STACK_OF(t1)*sk, int idx) \
     { \
         return (t2 *)(void *)OPENSSL_sk_value((const OPENSSL_STACK *)(const void *)sk, idx); \
     } \
@@ -42,11 +42,11 @@ extern "C" {
     } \
     static ossl_unused ossl_inline STACK_OF(t1) *sk_##t1##_new_reserve(sk_##t1##_compfunc compare, int n) \
     { \
-        return (STACK_OF(t1) *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n); \
+        return (STACK_OF(t1) *)(void *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n); \
     } \
     static ossl_unused ossl_inline int sk_##t1##_reserve(STACK_OF(t1) *sk, int n) \
     { \
-        return OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n); \
+        return OPENSSL_sk_reserve((OPENSSL_STACK *)(void *)sk, n); \
     } \
     static ossl_unused ossl_inline void sk_##t1##_free(STACK_OF(t1) *sk) \
     { \

Reply via email to