From 29ad22694f6f105de4d0322548d6551ecdadbb26 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 18 Jun 2008 12:08:16 +0000 Subject: * ruby.c (verbose_setter, opt_W_getter): fixed prototypes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ruby.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'ruby.c') diff --git a/ruby.c b/ruby.c index ab26e245a8..027b15f051 100644 --- a/ruby.c +++ b/ruby.c @@ -1440,15 +1440,17 @@ forbid_setid(const char *s, struct cmdline_options *opt) } static void -verbose_setter(VALUE val, ID id, VALUE *variable) +verbose_setter(VALUE val, ID id, void *data) { - ruby_verbose = RTEST(val) ? Qtrue : val; + VALUE *variable = data; + *variable = RTEST(val) ? Qtrue : val; } static VALUE -opt_W_getter(VALUE val, ID id, VALUE *variable) +opt_W_getter(ID id, void *data) { - switch (ruby_verbose) { + VALUE *variable = data; + switch (*variable) { case Qnil: return INT2FIX(0); case Qfalse: -- cgit v1.2.3