Skip to content

Commit 5a33936

Browse files
alexRich Salz
authored andcommitted
GH36: Add casts to match the documentation
Reviewed-by: Richard Levitte <[email protected]>
1 parent c1e3505 commit 5a33936

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/openssl/bio.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -519,14 +519,14 @@ struct bio_dgram_sctp_prinfo {
519519
*/
520520
int BIO_read_filename(BIO *b, const char *name);
521521
# else
522-
# define BIO_read_filename(b,name) BIO_ctrl(b,BIO_C_SET_FILENAME, \
522+
# define BIO_read_filename(b,name) (int)BIO_ctrl(b,BIO_C_SET_FILENAME, \
523523
BIO_CLOSE|BIO_FP_READ,(char *)name)
524524
# endif
525-
# define BIO_write_filename(b,name) BIO_ctrl(b,BIO_C_SET_FILENAME, \
525+
# define BIO_write_filename(b,name) (int)BIO_ctrl(b,BIO_C_SET_FILENAME, \
526526
BIO_CLOSE|BIO_FP_WRITE,name)
527-
# define BIO_append_filename(b,name) BIO_ctrl(b,BIO_C_SET_FILENAME, \
527+
# define BIO_append_filename(b,name) (int)BIO_ctrl(b,BIO_C_SET_FILENAME, \
528528
BIO_CLOSE|BIO_FP_APPEND,name)
529-
# define BIO_rw_filename(b,name) BIO_ctrl(b,BIO_C_SET_FILENAME, \
529+
# define BIO_rw_filename(b,name) (int)BIO_ctrl(b,BIO_C_SET_FILENAME, \
530530
BIO_CLOSE|BIO_FP_READ|BIO_FP_WRITE,name)
531531

532532
/*

0 commit comments

Comments
 (0)