X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1bbfe6dff09cff639aaab8fd2898678a5a630c2b..3603b42cd77c15c70a491ccc05ffbd84caed7dc4:/src/xbt/module.c diff --git a/src/xbt/module.c b/src/xbt/module.c index 290488eb66..04720c5e62 100644 --- a/src/xbt/module.c +++ b/src/xbt/module.c @@ -23,7 +23,7 @@ struct gras_module_ { }; void -gras_init(int argc, char **argv) { +gras_init(int *argc, char **argv) { gras_init_defaultlog(argc, argv, NULL); } @@ -35,8 +35,8 @@ gras_init(int argc, char **argv) { * Initialize the gras mecanisms. */ void -gras_init_defaultlog(int argc,char **argv, const char *defaultlog) { - int i; +gras_init_defaultlog(int *argc,char **argv, const char *defaultlog) { + int i,j; char *opt; gras_error_t errcode; int found=0; @@ -44,12 +44,21 @@ gras_init_defaultlog(int argc,char **argv, const char *defaultlog) { INFO0("Initialize GRAS"); /** Set logs and init log submodule */ - for (i=1; i