summaryrefslogtreecommitdiff
path: root/ext/thread
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-26 18:53:44 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-26 18:53:44 +0000
commit5386d05fb235b59ea301bf035b583e104b9604f8 (patch)
treef1ca1eff44f60325f973dc929c8919a7ea929919 /ext/thread
parent25f8c4c391a3f4c5ad40a5a21f3dd78b96b30849 (diff)
Oops, apply some more hunks to complete the previous change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/thread')
-rw-r--r--ext/thread/thread.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/thread/thread.c b/ext/thread/thread.c
index 7142459d83..c9423bd306 100644
--- a/ext/thread/thread.c
+++ b/ext/thread/thread.c
@@ -21,7 +21,7 @@ static VALUE rb_cSizedQueue;
static VALUE set_critical(VALUE value);
static VALUE
-thread_exclusive_do()
+thread_exclusive_do(void)
{
rb_thread_critical = 1;
@@ -38,9 +38,9 @@ thread_exclusive_do()
*/
static VALUE
-rb_thread_exclusive()
+rb_thread_exclusive(void)
{
- return rb_ensure(thread_exclusive_do, Qundef, thread_exclusive_ensure, rb_thread_critical);
+ return rb_ensure(thread_exclusive_do, Qundef, set_critical, rb_thread_critical);
}
typedef struct _Entry {