ruby-changes:59019
From: Nobuyoshi <ko1@a...>
Date: Sun, 1 Dec 2019 19:31:57 +0900 (JST)
Subject: [ruby-changes:59019] cb760f36aa (master): Constified
https://git.ruby-lang.org/ruby.git/commit/?id=cb760f36aa From cb760f36aae42a63738394f170444b6ae4405b82 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 1 Dec 2019 19:29:04 +0900 Subject: Constified diff --git a/mjit.c b/mjit.c index f0b66d3..8094127 100644 --- a/mjit.c +++ b/mjit.c @@ -702,7 +702,7 @@ start_worker(void) https://github.com/ruby/ruby/blob/trunk/mjit.c#L702 // 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) https://github.com/ruby/ruby/blob/trunk/mjit.c#L713 // 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; -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/