From 2f560dbc78360f0e7fa76a2dfdabd9c92d13e976 Mon Sep 17 00:00:00 2001 From: Ravishankar N Date: Wed, 15 Mar 2017 17:18:54 +0530 Subject: syncop: fix argc count in call to makecontext() We are only passing one argument (a pointer to struct synctask) to the function, so argc must be 1 and not 2. Change-Id: I4eaadd58a76f32327d8bb3efa9c5c435700d7391 BUG: 1434274 Signed-off-by: Ravishankar N Reviewed-on: https://review.gluster.org/16930 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Jeff Darcy --- libglusterfs/src/syncop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libglusterfs/src') diff --git a/libglusterfs/src/syncop.c b/libglusterfs/src/syncop.c index 7275f22b099..93f60535587 100644 --- a/libglusterfs/src/syncop.c +++ b/libglusterfs/src/syncop.c @@ -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, 2, newtask); + makecontext (&newtask->ctx, (void (*)(void)) synctask_wrap, 1, newtask); newtask->state = SYNCTASK_INIT; -- cgit