summaryrefslogtreecommitdiff
path: root/cont.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-08 06:53:54 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-08 06:53:54 (GMT)
commit76daf51c36038fde7405c379b3b77924dc3dfe3e (patch)
tree61e21f957be6d9adfa9e9053a55b8319e2a9a9c0 /cont.c
parente75d8e0c65a63c2545d02ecef3811543c2d0266b (diff)
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 0618f5a..7c89820 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;