Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/external/bsd/openssl/dist/include/openssl Add more ca...
details: https://anonhg.NetBSD.org/src/rev/a7f37a5e0d32
branches: trunk
changeset: 746111:a7f37a5e0d32
user: christos <christos%NetBSD.org@localhost>
date: Sun Mar 22 02:30:15 2020 +0000
description:
Add more casts.
diffstat:
crypto/external/bsd/openssl/dist/include/openssl/safestack.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r a1272bbe154f -r a7f37a5e0d32 crypto/external/bsd/openssl/dist/include/openssl/safestack.h
--- a/crypto/external/bsd/openssl/dist/include/openssl/safestack.h Sun Mar 22 00:56:45 2020 +0000
+++ b/crypto/external/bsd/openssl/dist/include/openssl/safestack.h Sun Mar 22 02:30:15 2020 +0000
@@ -28,7 +28,7 @@
{ \
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 @@
} \
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) \
{ \
Home |
Main Index |
Thread Index |
Old Index