X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/27f768c6fbe663c6de000473c44a61222b77d481..1fc042e8bc9c51f9267fa1936deaebe59ae01ee7:/src/mc/mc_xbt.cpp diff --git a/src/mc/mc_xbt.cpp b/src/mc/mc_xbt.cpp index b7e6f5a272..1cd7efb35c 100644 --- a/src/mc/mc_xbt.cpp +++ b/src/mc/mc_xbt.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2014-2015. The SimGrid Team. +/* Copyright (c) 2014-2017. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -6,12 +6,12 @@ #include -#include "src/mc/RemotePtr.hpp" #include "src/mc/AddressSpace.hpp" #include "src/mc/mc_xbt.hpp" +#include "src/mc/remote/RemotePtr.hpp" -#include -#include +#include "xbt/dynar.h" +#include "xbt/sysdep.h" namespace simgrid { namespace mc { @@ -22,7 +22,7 @@ void read_element(AddressSpace const& as, s_xbt_dynar_t d; as.read_bytes(&d, sizeof(d), addr); if (i >= d.used) - xbt_die("Out of bound index %zi/%lu", i, d.used); + xbt_die("Out of bound index %zu/%lu", i, d.used); if (len != d.elmsize) xbt_die("Bad size in simgrid::mc::read_element"); as.read_bytes(local, len, remote(xbt_dynar_get_ptr(&d, i))); @@ -30,7 +30,7 @@ void read_element(AddressSpace const& as, std::size_t read_length(AddressSpace const& as, RemotePtr addr) { - if (!addr) + if (not addr) return 0; unsigned long res; as.read_bytes(&res, sizeof(res),