[openssl-commits] [openssl] master update

Rich Salz rsalz at openssl.org
Mon Jan 11 17:35:18 UTC 2016


The branch master has been updated
       via  8e423bde2561bcddbc1d67f1fcc182d7dfa3f04d (commit)
      from  7d57d4d040eecdc6f169e95522bafb4a31e2aae5 (commit)


- Log -----------------------------------------------------------------
commit 8e423bde2561bcddbc1d67f1fcc182d7dfa3f04d
Author: Alessandro Ghedini <alessandro at ghedini.me>
Date:   Sun Jan 10 23:02:17 2016 +0000

    GH540: add casts to safestack.h
    
    Signed-off-by: Rich Salz <rsalz at openssl.org>
    Reviewed-by: Dr. Stephen Henson <steve at openssl.org>

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

Summary of changes:
 util/mkstack.pl | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/util/mkstack.pl b/util/mkstack.pl
index 06cf0f9..eae3d55 100755
--- a/util/mkstack.pl
+++ b/util/mkstack.pl
@@ -125,7 +125,7 @@ extern "C" {
     } \
     static ossl_inline t2 *sk_##t1##_value(const STACK_OF(t1) *sk, int idx) \
     { \
-        return sk_value((_STACK *)sk, idx); \
+        return (t2 *)sk_value((_STACK *)sk, idx); \
     } \
     static ossl_inline STACK_OF(t1) *sk_##t1##_new(int (*cmpf)(const t3 * const *a, const t3 * const *b)) \
     { \
@@ -145,11 +145,11 @@ extern "C" {
     } \
     static ossl_inline t2 *sk_##t1##_delete(STACK_OF(t1) *sk, int i) \
     { \
-        return sk_delete((_STACK *)sk, i); \
+        return (t2 *)sk_delete((_STACK *)sk, i); \
     } \
     static ossl_inline t2 *sk_##t1##_delete_ptr(STACK_OF(t1) *sk, t2 *ptr) \
     { \
-        return sk_delete_ptr((_STACK *)sk, (void *)ptr); \
+        return (t2 *)sk_delete_ptr((_STACK *)sk, (void *)ptr); \
     } \
     static ossl_inline int sk_##t1##_push(STACK_OF(t1) *sk, t2 *ptr) \
     { \
@@ -177,7 +177,7 @@ extern "C" {
     } \
     static ossl_inline t2 *sk_##t1##_set(STACK_OF(t1) *sk, int idx, t2 *ptr) \
     { \
-        return sk_set((_STACK *)sk, idx, (void *)ptr); \
+        return (t2 *)sk_set((_STACK *)sk, idx, (void *)ptr); \
     } \
     static ossl_inline int sk_##t1##_find(STACK_OF(t1) *sk, t2 *ptr) \
     { \


More information about the openssl-commits mailing list