-/* Copyright (c) 2007-2020. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2007-2021. 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. */
static void master_fun(int argc, char* argv[])
{
- sg_host_t* worker_pms = sg_actor_self_data();
+ sg_host_t* worker_pms = sg_actor_self_get_data();
sg_vm_t* vms = xbt_malloc(2 * sizeof(sg_vm_t));
free(pms);
sg_actor_t actor = sg_actor_init("master", master_pm);
- sg_actor_data_set(actor, worker_pms);
+ sg_actor_set_data(actor, worker_pms);
sg_actor_start(actor, master_fun, 0, NULL);
simgrid_run();