]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/bio/bf_lbuf.c
RT4660: BIO_METHODs should be const.
[thirdparty/openssl.git] / crypto / bio / bf_lbuf.c
index 96ee9206af15be4deea80f4745a2f5e780080c8f..77462f2445f21f7f6d5002fe88e792ba38212d0a 100644 (file)
@@ -75,7 +75,7 @@ static long linebuffer_callback_ctrl(BIO *h, int cmd, bio_info_cb *fp);
 
 /* #define DEBUG */
 
-static BIO_METHOD methods_linebuffer = {
+static const BIO_METHOD methods_linebuffer = {
     BIO_TYPE_LINEBUFFER,
     "linebuffer",
     linebuffer_write,
@@ -88,7 +88,7 @@ static BIO_METHOD methods_linebuffer = {
     linebuffer_callback_ctrl,
 };
 
-BIO_METHOD *BIO_f_linebuffer(void)
+const BIO_METHOD *BIO_f_linebuffer(void)
 {
     return (&methods_linebuffer);
 }