Fix missing casts for c++

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Stephen Henson <steve@openssl.org>
This commit is contained in:
Mathias Berchtold 2016-01-13 04:11:38 +01:00 committed by Dr. Stephen Henson
parent 03f887ca12
commit 917c343ef8

View file

@ -199,15 +199,15 @@ void lh_node_usage_stats_bio(const _LHASH *lh, BIO *out);
} \
static ossl_inline type *lh_##type##_insert(LHASH_OF(type) *lh, type *d) \
{ \
return lh_insert((_LHASH *)lh, d); \
return (type *)lh_insert((_LHASH *)lh, d); \
} \
static ossl_inline type *lh_##type##_delete(LHASH_OF(type) *lh, const type *d) \
{ \
return lh_delete((_LHASH *)lh, d); \
return (type *)lh_delete((_LHASH *)lh, d); \
} \
static ossl_inline type *lh_##type##_retrieve(LHASH_OF(type) *lh, const type *d) \
{ \
return lh_retrieve((_LHASH *)lh, d); \
return (type *)lh_retrieve((_LHASH *)lh, d); \
} \
static ossl_inline int lh_##type##_error(LHASH_OF(type) *lh) \
{ \