From: Martin Quinson Date: Sat, 17 Jun 2017 00:04:15 +0000 (+0200) Subject: cosmetics X-Git-Tag: v3.16~67 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/eb642d393d46dc7e47440e56781a0b92307ba1db cosmetics --- diff --git a/examples/msg/async-wait/async-wait.c b/examples/msg/async-wait/async-wait.c index e13a66afb0..0c4d599ee9 100644 --- a/examples/msg/async-wait/async-wait.c +++ b/examples/msg/async-wait/async-wait.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2016. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2010-2017. 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. */ @@ -45,10 +45,10 @@ static int sender(int argc, char *argv[]) for (int i = 0; i < receivers_count; i++) { char mailbox[80]; - snprintf(mailbox,79, "receiver-%ld", i % receivers_count); + snprintf(mailbox, 79, "receiver-%d", i); msg_task_t task = MSG_task_create("finalize", 0, 0, 0); msg_comm_t comm = MSG_task_isend(task, mailbox); - XBT_INFO("Send to receiver-%ld finalize", i % receivers_count); + XBT_INFO("Send to receiver-%d finalize", i); if (sleep_test_time > 0) { while (MSG_comm_test(comm) == 0) { MSG_process_sleep(sleep_test_time);