Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
implement gras_agent_spawn in RL, kill the data argument out of it
[simgrid.git] / src / gras / Virtu / sg_process.c
index 592de7e..2e2ed98 100644 (file)
@@ -22,13 +22,13 @@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(gras_virtu_process);
 static long int PID = 1;
 
 
-void gras_agent_spawn(const char *name, void *data,
+void gras_agent_spawn(const char *name,
                       xbt_main_func_t code, int argc, char *argv[],
                       xbt_dict_t properties)
 {
 
-  SIMIX_process_create(name, code,
-                       data, gras_os_myname(), argc, argv, properties);
+  SIMIX_process_create(name, code, NULL,
+                       gras_os_myname(), argc, argv, properties);
 }
 
 /* **************************************************************************
@@ -159,9 +159,9 @@ void *gras_libdata_by_name_from_remote(const char *name, smx_process_t p)
 /** @brief retrieve the value of a given process property (or NULL if not defined) */
 const char *gras_process_property_value(const char *name)
 {
-  return
-      xbt_dict_get_or_null(SIMIX_process_get_properties
-                           (SIMIX_process_self()), name);
+  return xbt_dict_get_or_null(
+               SIMIX_process_get_properties(SIMIX_process_self()), 
+                                            name);
 }
 
 /** @brief retrieve the process properties dictionnary