[openssl-commits] [openssl] master update

Dr. Stephen Henson steve at openssl.org
Wed Jan 13 03:45:30 UTC 2016


The branch master has been updated
       via  917c343ef8495ccb32cfc2fe7e42c57914e40061 (commit)
      from  03f887ca1213744e2da3ec50f46d9fe3bc269510 (commit)


- Log -----------------------------------------------------------------
commit 917c343ef8495ccb32cfc2fe7e42c57914e40061
Author: Mathias Berchtold <mb at smartftp.com>
Date:   Wed Jan 13 04:11:38 2016 +0100

    Fix missing casts for c++
    
    Reviewed-by: Rich Salz <rsalz at openssl.org>
    Reviewed-by: Stephen Henson <steve at openssl.org>

-----------------------------------------------------------------------

Summary of changes:
 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 b83fc6e..f4ea37b 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) \
     { \


More information about the openssl-commits mailing list