diff options
| author | tb <> | 2018-05-01 13:29:10 +0000 |
|---|---|---|
| committer | tb <> | 2018-05-01 13:29:10 +0000 |
| commit | 0348b99054499311191f1db880064066ce1c64b2 (patch) | |
| tree | 7876885f1d21e5b53f5a28cdd2d502808082a4fc /src/lib/libcrypto/bio/bf_nbio.c | |
| parent | a8b69163d3bb4f0d18483bcbdec0f92c676330df (diff) | |
| download | openbsd-0348b99054499311191f1db880064066ce1c64b2.tar.gz openbsd-0348b99054499311191f1db880064066ce1c64b2.tar.bz2 openbsd-0348b99054499311191f1db880064066ce1c64b2.zip | |
const for BIO_{new,set}() and most of the BIO_{f,s}_*() family of
functions.
ok beck, jsing
Diffstat (limited to 'src/lib/libcrypto/bio/bf_nbio.c')
| -rw-r--r-- | src/lib/libcrypto/bio/bf_nbio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/bio/bf_nbio.c b/src/lib/libcrypto/bio/bf_nbio.c index 24e2e7e8b9..05fa9161fb 100644 --- a/src/lib/libcrypto/bio/bf_nbio.c +++ b/src/lib/libcrypto/bio/bf_nbio.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bf_nbio.c,v 1.19 2015/02/07 13:19:15 doug Exp $ */ | 1 | /* $OpenBSD: bf_nbio.c,v 1.20 2018/05/01 13:29:09 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 | * |
| @@ -80,7 +80,7 @@ typedef struct nbio_test_st { | |||
| 80 | int lwn; | 80 | int lwn; |
| 81 | } NBIO_TEST; | 81 | } NBIO_TEST; |
| 82 | 82 | ||
| 83 | static BIO_METHOD methods_nbiof = { | 83 | static const BIO_METHOD methods_nbiof = { |
| 84 | .type = BIO_TYPE_NBIO_TEST, | 84 | .type = BIO_TYPE_NBIO_TEST, |
| 85 | .name = "non-blocking IO test filter", | 85 | .name = "non-blocking IO test filter", |
| 86 | .bwrite = nbiof_write, | 86 | .bwrite = nbiof_write, |
| @@ -93,7 +93,7 @@ static BIO_METHOD methods_nbiof = { | |||
| 93 | .callback_ctrl = nbiof_callback_ctrl | 93 | .callback_ctrl = nbiof_callback_ctrl |
| 94 | }; | 94 | }; |
| 95 | 95 | ||
| 96 | BIO_METHOD * | 96 | const BIO_METHOD * |
| 97 | BIO_f_nbio_test(void) | 97 | BIO_f_nbio_test(void) |
| 98 | { | 98 | { |
| 99 | return (&methods_nbiof); | 99 | return (&methods_nbiof); |
