XBT_LOG_NEW_DEFAULT_CATEGORY(app_token_ring, "Messages specific for this msg example");
/* Main function of all actors used in this example */
-static void relay_runner(int argc, XBT_ATTRIB_UNUSED char* argv[])
+static void relay_runner(int argc, char* argv[])
{
xbt_assert(argc == 0, "The relay_runner function does not accept any parameter from the XML deployment file");
const char* name = sg_actor_self_get_name();
- int rank = xbt_str_parse_int(name, "Any actor of this example must have a numerical name, not %s");
+ int rank = (int)xbt_str_parse_int(name, "Any actor of this example must have a numerical name, not %s");
sg_mailbox_t my_mailbox = sg_mailbox_by_name(name);
XBT_INFO("Number of hosts '%zu'", host_count);
for (size_t i = 0; i < host_count; i++) {
- /* - Give a unique rank to each host and create a @ref relay_runner process on each */
+ /* - Give a unique rank to each host and create a @ref relay_runner actor on each */
char* name_host = bprintf("%zu", i);
sg_actor_create(name_host, hosts[i], relay_runner, 0, NULL);
free(name_host);