Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Const is for the pointee, not the pointer.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 2 Jan 2020 10:06:28 +0000 (11:06 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 2 Jan 2020 15:48:37 +0000 (16:48 +0100)
teshsuite/msg/cloud-migration/cloud-migration.c

index 1527122..1e27f3b 100644 (file)
@@ -54,7 +54,7 @@ static int master_main(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[
 {
   msg_host_t pm0 = MSG_host_by_name("Fafard");
   msg_host_t pm1 = MSG_host_by_name("Tremblay");
-  const sg_host_t pm2 = MSG_host_by_name("Bourassa");
+  const_sg_host_t pm2 = MSG_host_by_name("Bourassa");
 
   msg_vm_t vm0 = MSG_vm_create_core(pm0, "VM0");
   MSG_vm_set_ramsize(vm0, 1e9); // 1Gbytes