MbedTLS: Const correctness in rb_ssl_init_fd

We shouldn't ever change this input variable.
Tell the compiler that we won't.
This commit is contained in:
Aaron Jones 2016-09-15 11:41:00 +00:00
parent 46c61dd478
commit 8668cb9b9d
No known key found for this signature in database
GPG key ID: EC6F86EE9CD840B5

View file

@ -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);