Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
s/surf_finalize/surf_exit/ for uniformity with other modules
[simgrid.git] / tools / gras / stub_generator.c
index f6445cf..aab8cd0 100644 (file)
@@ -9,6 +9,7 @@
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include "xbt/sysdep.h"
+#include "xbt/log.h"
 #include "surf/surf_parse.h"
 #include "surf/surf.h"
 
@@ -162,7 +163,6 @@ static void generate_sim(char *project)
   fprintf(OUT, "\n%s\n",warning);
 
   fprintf(OUT, "%s", "int main (int argc,char *argv[]) {\n" 
-                     "  int i,j;\n" 
                      "\n" 
                     "  /*  Simulation setup */\n" 
                      "  MSG_global_init_args(&argc,argv);\n" 
@@ -437,9 +437,6 @@ static void generate_makefile_local(char *project, char *deployment)
 
 static void generate_makefile_remote(char *project, char *deployment)
 {
-  xbt_dict_cursor_t cursor=NULL;
-  char *key = NULL;
-  void *data = NULL;
   char *filename = NULL;
   FILE *OUT = NULL;
 
@@ -606,6 +603,6 @@ int main(int argc, char *argv[])
   generate_deployment(project_name, deployment_file);
 
   free(warning);
-  surf_finalize();
+  surf_exit();
   return 0;
 }