From ec4a7ccf86c6be8d54934dd70c8e69fed328a612 Mon Sep 17 00:00:00 2001 From: ko1 Date: Wed, 25 Apr 2007 05:14:33 +0000 Subject: * ext/probeprofiler/probeprofiler.c: fix function name and return value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/probeprofiler/probeprofiler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/probeprofiler') diff --git a/ext/probeprofiler/probeprofiler.c b/ext/probeprofiler/probeprofiler.c index 9d2b1a6c09..9ffb203673 100644 --- a/ext/probeprofiler/probeprofiler.c +++ b/ext/probeprofiler/probeprofiler.c @@ -18,14 +18,14 @@ pprof_hook(rb_event_flag_t flag, VALUE data, VALUE dmyid, VALUE dmyklass) { rb_thread_t *th = GET_THREAD(); - VALUE sig = rb_thread_current_sig(th); + VALUE sig = rb_thread_current_status(th); hash_inc(data, sig); } static VALUE pprof_data(VALUE mod) { - rb_const_get_at(mod, rb_intern("#pprof_data")); + return rb_const_get_at(mod, rb_intern("#pprof_data")); } static VALUE -- cgit v1.2.3