From da6f1cfc7f11484466aa4f8d43b4d2ce6cf711fc Mon Sep 17 00:00:00 2001 From: cherierm Date: Fri, 21 Sep 2007 16:04:43 +0000 Subject: [PATCH] Declaration of the variables at the begining of the functions git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4681 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/simix/smx_process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/simix/smx_process.c b/src/simix/smx_process.c index 495e879311..f539ee8cf4 100644 --- a/src/simix/smx_process.c +++ b/src/simix/smx_process.c @@ -300,10 +300,10 @@ void SIMIX_process_suspend(smx_process_t process) } } else { /* process executing, I can create an action and suspend it */ - process->simdata->suspended = 1; smx_action_t dummy; smx_cond_t cond; char name[] = "dummy"; + process->simdata->suspended = 1; cond = SIMIX_cond_init(); dummy = SIMIX_action_execute(SIMIX_process_get_host(process), name, 0); @@ -340,11 +340,11 @@ void SIMIX_process_resume(smx_process_t process) simdata->suspended = 0; /* He'll wake up by itself */ return; } else if (simdata->cond) { - DEBUG0("Resume process blocked on a conditional"); /* temporaries variables */ smx_cond_t c; xbt_fifo_item_t i; smx_action_t act; + DEBUG0("Resume process blocked on a conditional"); simdata->suspended = 0; c = simdata->cond; xbt_fifo_foreach(c->actions, i, act, smx_action_t) { -- 2.20.1