Fix missing casts for c++
authorMathias Berchtold <mb@smartftp.com>
Wed, 13 Jan 2016 03:11:38 +0000 (04:11 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 13 Jan 2016 03:44:56 +0000 (03:44 +0000)
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Stephen Henson <steve@openssl.org>
include/openssl/lhash.h

index b83fc6e6f108aadf1794ba584a6f510194603781..f4ea37b8a1b33e52f03606699326a8d81d85d894 100644 (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) \
     { \