From 8668cb9b9dedd1aa75a4763691becc7363344e8a Mon Sep 17 00:00:00 2001 From: Aaron Jones Date: Thu, 15 Sep 2016 11:41:00 +0000 Subject: [PATCH] MbedTLS: Const correctness in rb_ssl_init_fd We shouldn't ever change this input variable. Tell the compiler that we won't. --- libratbox/src/mbedtls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libratbox/src/mbedtls.c b/libratbox/src/mbedtls.c index d0e240e7..8a137906 100644 --- a/libratbox/src/mbedtls.c +++ b/libratbox/src/mbedtls.c @@ -119,7 +119,7 @@ rb_mbedtls_cfg_decref(rb_mbedtls_cfg_context *const cfg) } static void -rb_ssl_init_fd(rb_fde_t *const F, rb_fd_tls_direction dir) +rb_ssl_init_fd(rb_fde_t *const F, const rb_fd_tls_direction dir) { rb_mbedtls_ssl_context *const mbed_ssl_ctx = rb_malloc(sizeof *mbed_ssl_ctx);