X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/633f851fd4cc9f4c587168d6c51ddc7af25e924e..65b4a0ef0ddd9e12c92aa7ce164dd92c6bf727c1:/teshsuite/s4u/seal-platform/seal-platform.cpp diff --git a/teshsuite/s4u/seal-platform/seal-platform.cpp b/teshsuite/s4u/seal-platform/seal-platform.cpp index a91e452282..325d32d5ff 100644 --- a/teshsuite/s4u/seal-platform/seal-platform.cpp +++ b/teshsuite/s4u/seal-platform/seal-platform.cpp @@ -51,14 +51,14 @@ public: auto received = mbox->get_unique(); XBT_INFO("I got a '%s'.", received->c_str()); - sg4::Disk* disk = sg4::Host::current()->get_disks().front(); - sg_size_t write_size = disk->write(4e6); + const sg4::Disk* disk = sg4::Host::current()->get_disks().front(); + sg_size_t write_size = disk->write(4e6); XBT_INFO("Wrote %llu bytes on '%s'", write_size, disk->get_cname()); } }; /*************************************************************************************************/ -static sg4::NetZone* create_zone(sg4::NetZone* root, const std::string& id) +static sg4::NetZone* create_zone(const sg4::NetZone* root, const std::string& id) { auto* zone = sg4::create_floyd_zone(id); zone->set_parent(root);