Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright lines with new year.
[simgrid.git] / examples / deprecated / msg / cloud-masterworker / cloud-masterworker.c
index cb9bfb5..dfe25f8 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2007-2019. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2007-2020. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -70,7 +70,7 @@ static int master_fun(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[]
   msg_vm_t vm;
   unsigned int i;
 
-  xbt_dynar_t worker_pms = MSG_process_get_data(MSG_process_self());
+  const_xbt_dynar_t worker_pms = MSG_process_get_data(MSG_process_self());
   int nb_workers = xbt_dynar_length(worker_pms);
 
   xbt_dynar_t vms = xbt_dynar_new(sizeof(msg_vm_t), NULL);