summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
authorRavishankar N <ravishankar@redhat.com>2017-03-15 17:18:54 +0530
committerJeff Darcy <jeff@pl.atyp.us>2017-03-21 09:18:22 -0400
commit2f560dbc78360f0e7fa76a2dfdabd9c92d13e976 (patch)
treef246b00b9f1ebb219efe961455da3e1330c64e0a /libglusterfs
parent0c2253942dd0e6176918a7d530e56053a9f26e6d (diff)
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 <ravishankar@redhat.com> Reviewed-on: https://review.gluster.org/16930 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Jeff Darcy <jeff@pl.atyp.us>
Diffstat (limited to 'libglusterfs')
-rw-r--r--libglusterfs/src/syncop.c2
1 files changed, 1 insertions, 1 deletions
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;