diff options
author | David Benjamin <davidben@google.com> | 2016-03-19 17:32:14 +0100 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-03-21 21:49:10 +0100 |
commit | 04f6b0fd9110c85c3c0d6d1172005d1c6755ac86 (patch) | |
tree | 3ce2eb3e6743161c6753a5344424a8fe72a0d97e /crypto/comp | |
parent | Downcase VMS config names (diff) | |
download | openssl-04f6b0fd9110c85c3c0d6d1172005d1c6755ac86.tar.xz openssl-04f6b0fd9110c85c3c0d6d1172005d1c6755ac86.zip |
RT4660: BIO_METHODs should be const.
BIO_new, etc., don't need a non-const BIO_METHOD. This allows all the
built-in method tables to live in .rodata.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/comp')
-rw-r--r-- | crypto/comp/c_zlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/comp/c_zlib.c b/crypto/comp/c_zlib.c index c78bbcfde8..138d686601 100644 --- a/crypto/comp/c_zlib.c +++ b/crypto/comp/c_zlib.c @@ -331,7 +331,7 @@ static int bio_zlib_write(BIO *b, const char *in, int inl); static long bio_zlib_ctrl(BIO *b, int cmd, long num, void *ptr); static long bio_zlib_callback_ctrl(BIO *b, int cmd, bio_info_cb *fp); -static BIO_METHOD bio_meth_zlib = { +static const BIO_METHOD bio_meth_zlib = { BIO_TYPE_COMP, "zlib", bio_zlib_write, @@ -344,7 +344,7 @@ static BIO_METHOD bio_meth_zlib = { bio_zlib_callback_ctrl }; -BIO_METHOD *BIO_f_zlib(void) +const BIO_METHOD *BIO_f_zlib(void) { return &bio_meth_zlib; } |