X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b168644e6d753f88b621d0d82c7d37e1113b4731..84402e8e2ee2a2d0bef25fdceb0a263ed8b471f6:/teshsuite/surf/wifi_usage/wifi_usage.cpp diff --git a/teshsuite/surf/wifi_usage/wifi_usage.cpp b/teshsuite/surf/wifi_usage/wifi_usage.cpp index ea2a0b2715..d6929d6360 100644 --- a/teshsuite/surf/wifi_usage/wifi_usage.cpp +++ b/teshsuite/surf/wifi_usage/wifi_usage.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2019. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2019-2020. 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. */ @@ -7,7 +7,7 @@ #include "xbt/log.h" #include "simgrid/msg.h" -#include "src/surf/network_cm02.hpp" +#include "src/surf/network_wifi.hpp" #include #include #include @@ -69,7 +69,8 @@ void run_ping_test(const char* src, const char* dest, int data_size) simgrid::s4u::Actor::create("sender", simgrid::s4u::Host::by_name(src), [mailbox, dest, data_size]() { double start_time = simgrid::s4u::Engine::get_clock(); - mailbox->put(const_cast("message"), data_size); + static char message[] = "message"; + mailbox->put(message, data_size); double end_time = simgrid::s4u::Engine::get_clock(); XBT_INFO("Actual result: Sending %d bytes from '%s' to '%s' takes %f seconds.", data_size, simgrid::s4u::this_actor::get_host()->get_cname(), dest, end_time - start_time);