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:
parent
46c61dd478
commit
8668cb9b9d
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ rb_mbedtls_cfg_decref(rb_mbedtls_cfg_context *const cfg)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
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);
|
rb_mbedtls_ssl_context *const mbed_ssl_ctx = rb_malloc(sizeof *mbed_ssl_ctx);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue