From bcee12262f157b5a931b52ff5f32855888c6202d Mon Sep 17 00:00:00 2001 From: cherierm Date: Fri, 20 Jun 2008 12:40:48 +0000 Subject: [PATCH] Ansi C declaration of variables. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5784 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- examples/simdag/metaxml/sd_meta.c | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/examples/simdag/metaxml/sd_meta.c b/examples/simdag/metaxml/sd_meta.c index 79d75321a3..6122aca9be 100644 --- a/examples/simdag/metaxml/sd_meta.c +++ b/examples/simdag/metaxml/sd_meta.c @@ -14,6 +14,15 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(sd_test, "Logging specific to this SimDag example"); int main(int argc, char **argv) { + + const char * platform_file; + const SD_workstation_t *workstations; + int ws_nr; + SD_workstation_t w1 = NULL; + SD_workstation_t w2 = NULL; + const char *name1, *name2; + int i,j,k; + /* initialisation of SD */ SD_init(&argc, argv); @@ -26,27 +35,27 @@ int main(int argc, char **argv) { } /* creation of the environment */ - const char * platform_file = argv[1]; + platform_file = argv[1]; SD_create_environment(platform_file); /* test the estimation functions */ - const SD_workstation_t *workstations = SD_workstation_get_list(); - int ws_nr = SD_workstation_get_number(); + workstations = SD_workstation_get_list(); + ws_nr = SD_workstation_get_number(); - SD_workstation_t w1 = NULL; - SD_workstation_t w2 = NULL; - const char *name1, *name2; + /* Show routes between all workstation */ - int i,j,k; + for (i=0; i