From: Richard Levitte Date: Sun, 1 Nov 2015 14:47:41 +0000 (+0100) Subject: Remove dummy argument from BIO_get_bind_mode X-Git-Tag: OpenSSL_1_1_0-pre1~313 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=8976eb249aa4aae8c5c7a6f59a512cd22d2a9b8e;hp=0e474b8b6f328a4fadca7f4689e13d60f1d90515 Remove dummy argument from BIO_get_bind_mode Reviewed-by: Andy Polyakov --- diff --git a/doc/crypto/BIO_s_accept.pod b/doc/crypto/BIO_s_accept.pod index 80a83485ad..87d24a89dc 100644 --- a/doc/crypto/BIO_s_accept.pod +++ b/doc/crypto/BIO_s_accept.pod @@ -21,7 +21,7 @@ BIO_get_bind_mode, BIO_do_accept - accept BIO long BIO_set_accept_bios(BIO *b, char *bio); long BIO_set_bind_mode(BIO *b, long mode); - long BIO_get_bind_mode(BIO *b, long dummy); + long BIO_get_bind_mode(BIO *b); #define BIO_BIND_NORMAL 0 #define BIO_BIND_REUSEADDR_IF_UNUSED 1 diff --git a/include/openssl/bio.h b/include/openssl/bio.h index 5090fc3b5a..e4f4e47658 100644 --- a/include/openssl/bio.h +++ b/include/openssl/bio.h @@ -481,7 +481,7 @@ struct bio_dgram_sctp_prinfo { # define BIO_BIND_REUSEADDR_IF_UNUSED 1 # define BIO_BIND_REUSEADDR 2 # define BIO_set_bind_mode(b,mode) BIO_ctrl(b,BIO_C_SET_BIND_MODE,mode,NULL) -# define BIO_get_bind_mode(b,mode) BIO_ctrl(b,BIO_C_GET_BIND_MODE,0,NULL) +# define BIO_get_bind_mode(b) BIO_ctrl(b,BIO_C_GET_BIND_MODE,0,NULL) # define BIO_do_connect(b) BIO_do_handshake(b) # define BIO_do_accept(b) BIO_do_handshake(b)