X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7410b72db09489e8b9d3ee3cb087f35882397d93..da03a3c837531ecf267b31e63f5a9cedb3d298ca:/src/xbt/xbt_main.c diff --git a/src/xbt/xbt_main.c b/src/xbt/xbt_main.c index 43e903f5cf..3451b60527 100644 --- a/src/xbt/xbt_main.c +++ b/src/xbt/xbt_main.c @@ -144,22 +144,12 @@ void xbt_init(int *argc, char **argv) xbt_binary_name = xbt_strdup(argv[0]); xbt_cmdline = xbt_dynar_new(sizeof(char*),NULL); - int i; - for (i=0;i<*argc;i++) { + for (int i=0;i<*argc;i++) xbt_dynar_push(xbt_cmdline,&(argv[i])); - } xbt_log_init(argc, argv); } -/** @brief Finalize the xbt mechanisms. - * @warning this function is deprecated. Just don't call it, there is nothing more to do to finalize xbt*/ -void xbt_exit() -{ - XBT_WARN("This function is deprecated, you shouldn't use it"); -} - - /* these two functions belong to xbt/sysdep.h, which have no corresponding .c file */ /** @brief like free, but you can be sure that it is a function */ void xbt_free_f(void *p)