From 4e03a7298b3a99de9c57f9a4934d38445cad1b10 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 1 Dec 2019 20:26:28 +0900 Subject: [PATCH] Constified mjit_init --- mjit.c | 2 +- mjit.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mjit.c b/mjit.c index 8094127074..93845cdb04 100644 --- a/mjit.c +++ b/mjit.c @@ -741,7 +741,7 @@ split_flags(const char *flags) // processing ISeqs. The function should be called first for using MJIT. // If everything is successful, MJIT_INIT_P will be TRUE. void -mjit_init(struct mjit_options *opts) +mjit_init(const struct mjit_options *opts) { mjit_opts = *opts; mjit_enabled = true; diff --git a/mjit.h b/mjit.h index ff16c0fca4..256bf65a29 100644 --- a/mjit.h +++ b/mjit.h @@ -80,7 +80,7 @@ extern void rb_mjit_recompile_iseq(const rb_iseq_t *iseq); RUBY_SYMBOL_EXPORT_END extern bool mjit_compile(FILE *f, const rb_iseq_t *iseq, const char *funcname); -extern void mjit_init(struct mjit_options *opts); +extern void mjit_init(const struct mjit_options *opts); extern void mjit_gc_start_hook(void); extern void mjit_gc_exit_hook(void); extern void mjit_free_iseq(const rb_iseq_t *iseq);