From: SUTER Frederic Date: Mon, 10 Jan 2022 06:53:26 +0000 (+0100) Subject: cosmetics X-Git-Tag: v3.30~107 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/fc76eac8d82e65ece481a2d104c34034c9934e14 cosmetics --- diff --git a/examples/cpp/comm-ready/s4u-comm-ready.cpp b/examples/cpp/comm-ready/s4u-comm-ready.cpp index de486d89b6..edb9575f49 100644 --- a/examples/cpp/comm-ready/s4u-comm-ready.cpp +++ b/examples/cpp/comm-ready/s4u-comm-ready.cpp @@ -42,7 +42,7 @@ static void peer(int my_id, int messages_count, size_t payload_size, int peers_c sg4::Mailbox* mbox = sg4::Mailbox::by_name(std::string("peer-") + std::to_string(peer_id)); std::string message = std::string("Message ") + std::to_string(i) + " from peer " + std::to_string(my_id); auto* payload = new std::string(message); // copy the data we send: - // 'msgName' is not a stable storage location + // 'message' is not a stable storage location XBT_INFO("Send '%s' to '%s'", message.c_str(), mbox->get_cname()); /* Create a communication representing the ongoing communication */ pending_comms.push_back(mbox->put_async(payload, payload_size)); diff --git a/examples/cpp/dag-scheduling/s4u-dag-scheduling.cpp b/examples/cpp/dag-scheduling/s4u-dag-scheduling.cpp index 60e645adb7..c0502b76cb 100644 --- a/examples/cpp/dag-scheduling/s4u-dag-scheduling.cpp +++ b/examples/cpp/dag-scheduling/s4u-dag-scheduling.cpp @@ -261,9 +261,5 @@ int main(int argc, char** argv) XBT_INFO("Simulation Time: %f", simgrid_get_clock()); - for (auto h : hosts) { - h->set_data(nullptr); - } - return 0; }