Add more casts.

This commit is contained in:
christos 2020-03-22 02:30:15 +00:00
parent 47534e1ef6
commit 3f8590da2c
1 changed files with 3 additions and 3 deletions

View File

@ -42,11 +42,11 @@ extern "C" {
} \ } \
static ossl_unused ossl_inline STACK_OF(t1) *sk_##t1##_new_reserve(sk_##t1##_compfunc compare, int n) \ 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) \ 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) \ static ossl_unused ossl_inline void sk_##t1##_free(STACK_OF(t1) *sk) \
{ \ { \