From d179dae307ac7f37cfdcb0967d16dd7186146e55 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 12 May 2018 17:47:53 +0000 Subject: Add const qualifiers to the return values of BIO_s_mem() and BIO_s_datagram(). ok jsing --- src/lib/libcrypto/bio/bss_mem.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/libcrypto/bio/bss_mem.c') diff --git a/src/lib/libcrypto/bio/bss_mem.c b/src/lib/libcrypto/bio/bss_mem.c index be491ca152..a699dc51c3 100644 --- a/src/lib/libcrypto/bio/bss_mem.c +++ b/src/lib/libcrypto/bio/bss_mem.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bss_mem.c,v 1.15 2017/01/29 17:49:22 beck Exp $ */ +/* $OpenBSD: bss_mem.c,v 1.16 2018/05/12 17:47:53 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -72,7 +72,7 @@ static long mem_ctrl(BIO *h, int cmd, long arg1, void *arg2); static int mem_new(BIO *h); static int mem_free(BIO *data); -static BIO_METHOD mem_method = { +static const BIO_METHOD mem_method = { .type = BIO_TYPE_MEM, .name = "memory buffer", .bwrite = mem_write, @@ -87,7 +87,7 @@ static BIO_METHOD mem_method = { /* bio->num is used to hold the value to return on 'empty', if it is * 0, should_retry is not set */ -BIO_METHOD * +const BIO_METHOD * BIO_s_mem(void) { return (&mem_method); -- cgit v1.2.3-55-g6feb