summaryrefslogtreecommitdiff
path: root/crypto/bio/bss_log.c
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@google.com>2016-03-19 12:32:14 -0400
committerRich Salz <rsalz@openssl.org>2016-03-21 16:49:10 -0400
commit04f6b0fd9110c85c3c0d6d1172005d1c6755ac86 (patch)
tree3ce2eb3e6743161c6753a5344424a8fe72a0d97e /crypto/bio/bss_log.c
parent52d86d9b8da9916acf337126a9ced850cb5ab2d3 (diff)
downloadopenssl-new-04f6b0fd9110c85c3c0d6d1172005d1c6755ac86.tar.gz
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/bio/bss_log.c')
-rw-r--r--crypto/bio/bss_log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/bio/bss_log.c b/crypto/bio/bss_log.c
index 560f1b7aa3..a6bc0e779a 100644
--- a/crypto/bio/bss_log.c
+++ b/crypto/bio/bss_log.c
@@ -128,7 +128,7 @@ static void xopenlog(BIO *bp, char *name, int level);
static void xsyslog(BIO *bp, int priority, const char *string);
static void xcloselog(BIO *bp);
-static BIO_METHOD methods_slg = {
+static const BIO_METHOD methods_slg = {
BIO_TYPE_MEM, "syslog",
slg_write,
NULL,
@@ -140,7 +140,7 @@ static BIO_METHOD methods_slg = {
NULL,
};
-BIO_METHOD *BIO_s_log(void)
+const BIO_METHOD *BIO_s_log(void)
{
return (&methods_slg);
}