- msg_task_t task = NULL;
- XBT_ATTRIB_UNUSED int res;
- if (rank == 0){ /** - The root (rank 0) first sends the token then waits to receive it back */
- sprintf(mailbox, "%d", rank+1);
- task = MSG_task_create("Token", 0, task_comm_size, NULL);
+
+ if (rank == 0) {
+ /* The root process (rank 0) first sends the token then waits to receive it back */
+ snprintf(mailbox,255, "%d", rank+1);
+ msg_task_t task = MSG_task_create("Token", 0, task_comm_size, NULL);