aboutsummaryrefslogtreecommitdiffstats
path: root/cont.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-08 06:53:54 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-08 06:53:54 +0000
commit7125da1b5438df65551213c331595209860179e8 (patch)
tree61e21f957be6d9adfa9e9053a55b8319e2a9a9c0 /cont.c
parent29449454aafd9198ff5807a772cc336f7a62c051 (diff)
downloadruby-7125da1b5438df65551213c331595209860179e8.tar.gz
fix type mismatch.
* cont.c (fiber_context_create): `func` should accept variable args. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'cont.c')
-rw-r--r--cont.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cont.c b/cont.c
index 0618f5a25d..7c8982087d 100644
--- a/cont.c
+++ b/cont.c
@@ -143,7 +143,7 @@ enum fiber_status {
#if FIBER_USE_NATIVE && !defined(_WIN32)
static inline void
-fiber_context_create(ucontext_t *context, void (*func)(void *), void *arg, void *ptr, size_t size)
+fiber_context_create(ucontext_t *context, void (*func)(), void *arg, void *ptr, size_t size)
{
getcontext(context);
context->uc_link = NULL;