X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5c1a6059a5e825600a240878638311aa572746ad..227a88738ba85d6161e9e8d4da4c65b605584a46:/examples/c/app-token-ring/app-token-ring.c?ds=sidebyside diff --git a/examples/c/app-token-ring/app-token-ring.c b/examples/c/app-token-ring/app-token-ring.c index f78e27db71..69c6fc177f 100644 --- a/examples/c/app-token-ring/app-token-ring.c +++ b/examples/c/app-token-ring/app-token-ring.c @@ -18,12 +18,12 @@ 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);