X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/49e85177c669d793e84242983a1b1f430e47184e..ff42d9aef11926884204c1945172c0d76b8a36be:/examples/msg/masterslave/masterslave_forwarder.c diff --git a/examples/msg/masterslave/masterslave_forwarder.c b/examples/msg/masterslave/masterslave_forwarder.c index 7aa886143c..96cb6f8ed8 100644 --- a/examples/msg/masterslave/masterslave_forwarder.c +++ b/examples/msg/masterslave/masterslave_forwarder.c @@ -5,7 +5,7 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include -#include "msg/msg.h" /* Yeah! If you want to use msg, you need to include msg/msg.h */ +#include "simgrid/msg.h" /* Yeah! If you want to use msg, you need to include simgrid/msg.h */ #include "xbt/sysdep.h" /* calloc, printf */ /* Create a log channel to have nice outputs. */ @@ -68,7 +68,7 @@ int master(int argc, char *argv[]) slaves = xbt_new0(msg_host_t, slaves_count); for (i = 4; i < argc; i++) { - slaves[i - 4] = MSG_get_host_by_name(argv[i]); + slaves[i - 4] = MSG_host_by_name(argv[i]); xbt_assert(slaves[i - 4] != NULL, "Unknown host %s. Stopping Now! ", argv[i]); } @@ -140,7 +140,7 @@ int forwarder(int argc, char *argv[]) slaves = xbt_new0(msg_host_t, slaves_count); for (i = 1; i < argc; i++) { - slaves[i - 1] = MSG_get_host_by_name(argv[i]); + slaves[i - 1] = MSG_host_by_name(argv[i]); if (slaves[i - 1] == NULL) { XBT_INFO("Unknown host %s. Stopping Now! ", argv[i]); abort(); @@ -185,7 +185,6 @@ msg_error_t test_all(const char *platform_file, { msg_error_t res = MSG_OK; - /* MSG_config("workstation/model","KCCFLN05"); */ { /* Simulation setting */ MSG_create_environment(platform_file); }