Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Constify pointer parameters in src/msg/.
[simgrid.git] / src / msg / msg_legacy.cpp
index 6240acd..2454b2e 100644 (file)
@@ -102,7 +102,7 @@ void MSG_process_daemonize(sg_actor_t actor)
 }
 void MSG_process_migrate(sg_actor_t actor, sg_host_t host)
 {
-  sg_actor_migrate(actor, host);
+  sg_actor_set_host(actor, host);
 }
 void MSG_process_join(sg_actor_t actor, double timeout)
 {
@@ -139,7 +139,7 @@ msg_error_t MSG_process_sleep(double duration)
  *
  * This function checks whether @a process is a valid pointer and returns the user data associated to this process.
  */
-void* MSG_process_get_data(msg_process_t process)
+void* MSG_process_get_data(const_sg_actor_t process)
 {
   xbt_assert(process != nullptr, "Invalid parameter: first parameter must not be nullptr!");