summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libglusterfs/src/syncop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libglusterfs/src/syncop.c b/libglusterfs/src/syncop.c
index 021834ed42d..3fa798a4342 100644
--- a/libglusterfs/src/syncop.c
+++ b/libglusterfs/src/syncop.c
@@ -364,7 +364,7 @@ synctask_wake (struct synctask *task)
}
void
-synctask_wrap (struct synctask *old_task)
+synctask_wrap (void)
{
struct synctask *task = NULL;
@@ -509,7 +509,7 @@ synctask_create (struct syncenv *env, size_t stacksize, synctask_fn_t fn,
newtask->ctx.uc_stack.ss_sp = newtask->stack;
- makecontext (&newtask->ctx, (void (*)(void)) synctask_wrap, 1, newtask);
+ makecontext (&newtask->ctx, (void (*)(void)) synctask_wrap, 0);
newtask->state = SYNCTASK_INIT;