From 917c343ef8495ccb32cfc2fe7e42c57914e40061 Mon Sep 17 00:00:00 2001 From: Mathias Berchtold Date: Wed, 13 Jan 2016 04:11:38 +0100 Subject: [PATCH] Fix missing casts for c++ Reviewed-by: Rich Salz Reviewed-by: Stephen Henson --- include/openssl/lhash.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) \ { \ -- 2.34.1