diff options
author | David Benjamin <davidben@google.com> | 2016-03-19 12:32:14 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-03-21 16:49:10 -0400 |
commit | 04f6b0fd9110c85c3c0d6d1172005d1c6755ac86 (patch) | |
tree | 3ce2eb3e6743161c6753a5344424a8fe72a0d97e /apps/s_server.c | |
parent | 52d86d9b8da9916acf337126a9ced850cb5ab2d3 (diff) | |
download | openssl-04f6b0fd9110c85c3c0d6d1172005d1c6755ac86.zip openssl-04f6b0fd9110c85c3c0d6d1172005d1c6755ac86.tar.gz openssl-04f6b0fd9110c85c3c0d6d1172005d1c6755ac86.tar.bz2 |
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 'apps/s_server.c')
-rw-r--r-- | apps/s_server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/s_server.c b/apps/s_server.c index b33d768..08acc47 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -421,7 +421,7 @@ static int ebcdic_gets(BIO *bp, char *buf, int size); static int ebcdic_puts(BIO *bp, const char *str); # define BIO_TYPE_EBCDIC_FILTER (18|0x0200) -static BIO_METHOD methods_ebcdic = { +static const BIO_METHOD methods_ebcdic = { BIO_TYPE_EBCDIC_FILTER, "EBCDIC/ASCII filter", ebcdic_write, @@ -439,7 +439,7 @@ typedef struct { char buff[1]; } EBCDIC_OUTBUFF; -BIO_METHOD *BIO_f_ebcdic_filter() +const BIO_METHOD *BIO_f_ebcdic_filter() { return (&methods_ebcdic); } |