summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/bss_file.c
diff options
context:
space:
mode:
authortb <>2018-05-30 00:23:04 +0000
committertb <>2018-05-30 00:23:04 +0000
commit404620984af378ba4d050f61e4216c4e72f62f8b (patch)
tree814ed62063ff21a384142de872598d0baf677d1e /src/lib/libcrypto/bio/bss_file.c
parente0129afbf70b6a10e2a50fb9fd4e1f76ed4c3c82 (diff)
downloadopenbsd-404620984af378ba4d050f61e4216c4e72f62f8b.tar.gz
openbsd-404620984af378ba4d050f61e4216c4e72f62f8b.tar.bz2
openbsd-404620984af378ba4d050f61e4216c4e72f62f8b.zip
Add a const qualifier to the return value of BIO_s_file().
tested in a bulk build by sthen ok bcook, jsing
Diffstat (limited to 'src/lib/libcrypto/bio/bss_file.c')
-rw-r--r--src/lib/libcrypto/bio/bss_file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/bio/bss_file.c b/src/lib/libcrypto/bio/bss_file.c
index 01f4a3ff3b..fe937388b2 100644
--- a/src/lib/libcrypto/bio/bss_file.c
+++ b/src/lib/libcrypto/bio/bss_file.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bss_file.c,v 1.32 2017/01/29 17:49:22 beck Exp $ */ 1/* $OpenBSD: bss_file.c,v 1.33 2018/05/30 00:23:04 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -98,7 +98,7 @@ static long file_ctrl(BIO *h, int cmd, long arg1, void *arg2);
98static int file_new(BIO *h); 98static int file_new(BIO *h);
99static int file_free(BIO *data); 99static int file_free(BIO *data);
100 100
101static BIO_METHOD methods_filep = { 101static const BIO_METHOD methods_filep = {
102 .type = BIO_TYPE_FILE, 102 .type = BIO_TYPE_FILE,
103 .name = "FILE pointer", 103 .name = "FILE pointer",
104 .bwrite = file_write, 104 .bwrite = file_write,
@@ -148,7 +148,7 @@ BIO_new_fp(FILE *stream, int close_flag)
148 return (ret); 148 return (ret);
149} 149}
150 150
151BIO_METHOD * 151const BIO_METHOD *
152BIO_s_file(void) 152BIO_s_file(void)
153{ 153{
154 return (&methods_filep); 154 return (&methods_filep);