diff --git a/internal.h b/internal.h index 7d6bf1ec72..5a846c13e0 100644 --- a/internal.h +++ b/internal.h @@ -2215,7 +2215,7 @@ VALUE rb_thread_shield_release(VALUE self); VALUE rb_thread_shield_destroy(VALUE self); int rb_thread_to_be_killed(VALUE thread); void rb_mutex_allow_trap(VALUE self, int val); -VALUE rb_uninterruptible(VALUE (*b_proc)(ANYARGS), VALUE data); +VALUE rb_uninterruptible(VALUE (*b_proc)(VALUE), VALUE data); VALUE rb_mutex_owned_p(VALUE self); /* transcode.c */ diff --git a/thread.c b/thread.c index 57ccfef8b7..752b8b0cd3 100644 --- a/thread.c +++ b/thread.c @@ -5507,7 +5507,7 @@ rb_default_coverage(int n) } VALUE -rb_uninterruptible(VALUE (*b_proc)(ANYARGS), VALUE data) +rb_uninterruptible(VALUE (*b_proc)(VALUE), VALUE data) { VALUE interrupt_mask = rb_ident_hash_new(); rb_thread_t *cur_th = GET_THREAD();