summaryrefslogtreecommitdiff
path: root/mjit.c
diff options
context:
space:
mode:
Diffstat (limited to 'mjit.c')
-rw-r--r--mjit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mjit.c b/mjit.c
index f0b66d321d..8094127074 100644
--- a/mjit.c
+++ b/mjit.c
@@ -702,7 +702,7 @@ start_worker(void)
// There's no strndup on Windows
static char*
-ruby_strndup(char *str, size_t n)
+ruby_strndup(const char *str, size_t n)
{
char *ret = xmalloc(n + 1);
memcpy(ret, str, n);
@@ -713,7 +713,7 @@ ruby_strndup(char *str, size_t n)
// Convert "foo bar" to {"foo", "bar", NULL} array. Caller is responsible for
// freeing a returned buffer and its elements.
static char **
-split_flags(char *flags)
+split_flags(const char *flags)
{
char *buf[MAXPATHLEN];
int i = 0;