From: cherierm Date: Fri, 21 Sep 2007 16:05:54 +0000 (+0000) Subject: Declaration of the variables at the beginning of the functions X-Git-Tag: v3.3~1108 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/872cbb10d995d395761a0c059588c24992266f78?hp=568db0c9329e157e88f25ba85c515cb9f596f03a Declaration of the variables at the beginning of the functions git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4683 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/surf/workstation_KCCFLN05.c b/src/surf/workstation_KCCFLN05.c index 67baeedeb7..06f208bef8 100644 --- a/src/surf/workstation_KCCFLN05.c +++ b/src/surf/workstation_KCCFLN05.c @@ -865,10 +865,10 @@ static void router_free(void *router) static void router_new(const char *name) { static unsigned int nb_routers = 0; + router_KCCFLN05_t router; INFO1("Creating a router %s", name); - router_KCCFLN05_t router; router = xbt_new0(s_router_KCCFLN05_t, 1); router->name = xbt_strdup(name);