From: Mathias Berchtold Date: Wed, 13 Jan 2016 03:11:38 +0000 (+0100) Subject: Fix missing casts for c++ X-Git-Tag: OpenSSL_1_1_0-pre2~32 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=917c343ef8495ccb32cfc2fe7e42c57914e40061;p=oweals%2Fopenssl.git Fix missing casts for c++ Reviewed-by: Rich Salz Reviewed-by: Stephen Henson --- diff --git a/include/openssl/lhash.h b/include/openssl/lhash.h index b83fc6e6f1..f4ea37b8a1 100644 --- a/include/openssl/lhash.h +++ b/include/openssl/lhash.h @@ -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) \ { \