From e99ee55abcdbd3057f5ef7d4ef6692457815afaa Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 18 Jun 2014 06:16:39 +0000 Subject: constify parameters * include/ruby/intern.h: constify `argv` parameters. * include/ruby/ruby.h: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_method.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vm_method.c') diff --git a/vm_method.c b/vm_method.c index bb1b129544..966fc419b6 100644 --- a/vm_method.c +++ b/vm_method.c @@ -94,7 +94,7 @@ rb_clear_method_cache_by_class(VALUE klass) } VALUE -rb_f_notimplement(int argc, VALUE *argv, VALUE obj) +rb_f_notimplement(int argc, const VALUE *argv, VALUE obj) { rb_notimplement(); @@ -1336,7 +1336,7 @@ rb_mod_alias_method(VALUE mod, VALUE newname, VALUE oldname) } static void -set_method_visibility(VALUE self, int argc, VALUE *argv, rb_method_flag_t ex) +set_method_visibility(VALUE self, int argc, const VALUE *argv, rb_method_flag_t ex) { int i; @@ -1357,7 +1357,7 @@ set_method_visibility(VALUE self, int argc, VALUE *argv, rb_method_flag_t ex) } static VALUE -set_visibility(int argc, VALUE *argv, VALUE module, rb_method_flag_t ex) +set_visibility(int argc, const VALUE *argv, VALUE module, rb_method_flag_t ex) { if (argc == 0) { SCOPE_SET(ex); -- cgit v1.2.3