From 04f6b0fd9110c85c3c0d6d1172005d1c6755ac86 Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Sat, 19 Mar 2016 12:32:14 -0400 Subject: 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 --- crypto/bio/bss_fd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crypto/bio/bss_fd.c') diff --git a/crypto/bio/bss_fd.c b/crypto/bio/bss_fd.c index 48921eee99..983e9fe08c 100644 --- a/crypto/bio/bss_fd.c +++ b/crypto/bio/bss_fd.c @@ -79,7 +79,7 @@ int BIO_fd_should_retry(int i) return 0; } -BIO_METHOD *BIO_s_fd(void) +const BIO_METHOD *BIO_s_fd(void) { return NULL; } @@ -105,7 +105,7 @@ static int fd_new(BIO *h); static int fd_free(BIO *data); int BIO_fd_should_retry(int s); -static BIO_METHOD methods_fdp = { +static const BIO_METHOD methods_fdp = { BIO_TYPE_FD, "file descriptor", fd_write, fd_read, @@ -117,7 +117,7 @@ static BIO_METHOD methods_fdp = { NULL, }; -BIO_METHOD *BIO_s_fd(void) +const BIO_METHOD *BIO_s_fd(void) { return (&methods_fdp); } -- cgit v1.2.3