Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Better fix for constness of argv in sg_actor_start/create.
[simgrid.git] / examples / c / cloud-migration / cloud-migration.c
index b098fd7..4e64e4b 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2007-2020. The SimGrid Team.
+/* Copyright (c) 2007-2021. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -45,7 +45,7 @@ static void vm_migrate_async(const_sg_vm_t vm, const_sg_host_t dst_pm)
   const char* dst_pm_name = sg_host_get_name(dst_pm);
 
   const char* argv[] = {"mig_work", vm_name, dst_pm_name, NULL};
-  sg_actor_create("mig_wrk", sg_host_self(), migration_worker_main, 3, argv);
+  sg_actor_create_("mig_wrk", sg_host_self(), migration_worker_main, 3, argv);
 }
 
 static void master_main(int argc, char* argv[])