[openssl-commits] [openssl] master update

Rich Salz rsalz at openssl.org
Sat Mar 19 16:18:09 UTC 2016


The branch master has been updated
       via  5a339364f75342978cc3943f788037cb47ee529e (commit)
      from  c1e350577fe14e3e124cc258f742cb77a14b6ce8 (commit)


- Log -----------------------------------------------------------------
commit 5a339364f75342978cc3943f788037cb47ee529e
Author: Alex Gaynor <alex.gaynor at gmail.com>
Date:   Sat Mar 19 12:17:31 2016 -0400

    GH36: Add casts to match the documentation
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>

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

Summary of changes:
 include/openssl/bio.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/openssl/bio.h b/include/openssl/bio.h
index 06e1cbf..3b2265f 100644
--- a/include/openssl/bio.h
+++ b/include/openssl/bio.h
@@ -519,14 +519,14 @@ struct bio_dgram_sctp_prinfo {
  */
 int BIO_read_filename(BIO *b, const char *name);
 # else
-#  define BIO_read_filename(b,name) BIO_ctrl(b,BIO_C_SET_FILENAME, \
+#  define BIO_read_filename(b,name) (int)BIO_ctrl(b,BIO_C_SET_FILENAME, \
                 BIO_CLOSE|BIO_FP_READ,(char *)name)
 # endif
-# define BIO_write_filename(b,name) BIO_ctrl(b,BIO_C_SET_FILENAME, \
+# define BIO_write_filename(b,name) (int)BIO_ctrl(b,BIO_C_SET_FILENAME, \
                 BIO_CLOSE|BIO_FP_WRITE,name)
-# define BIO_append_filename(b,name) BIO_ctrl(b,BIO_C_SET_FILENAME, \
+# define BIO_append_filename(b,name) (int)BIO_ctrl(b,BIO_C_SET_FILENAME, \
                 BIO_CLOSE|BIO_FP_APPEND,name)
-# define BIO_rw_filename(b,name) BIO_ctrl(b,BIO_C_SET_FILENAME, \
+# define BIO_rw_filename(b,name) (int)BIO_ctrl(b,BIO_C_SET_FILENAME, \
                 BIO_CLOSE|BIO_FP_READ|BIO_FP_WRITE,name)
 
 /*


More information about the openssl-commits mailing list