X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/742074df00e1d14c35f8505924d26036b9b8cac5..9a28137e0100255c9e849a39167590cb2305aa82:/src/mc/mc_smx.cpp diff --git a/src/mc/mc_smx.cpp b/src/mc/mc_smx.cpp index 0c6b8398a1..e3d50c9b18 100644 --- a/src/mc/mc_smx.cpp +++ b/src/mc/mc_smx.cpp @@ -5,16 +5,21 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include +#include #include +#include +#include +#include #include #include #include #include -#include "src/simix/smx_private.h" +#include +#include "src/simix/smx_private.h" #include "src/mc/mc_smx.h" #include "src/mc/ModelChecker.hpp" @@ -167,7 +172,7 @@ const char* MC_smx_process_get_host_name(smx_process_t p) simgrid::xbt::string_data remote_string = process->read(remote_string_address); char hostname[remote_string.len]; process->read_bytes(hostname, remote_string.len + 1, remote(remote_string.data)); - info->hostname = mc_model_checker->get_host_name(hostname); + info->hostname = mc_model_checker->get_host_name(hostname).c_str(); return info->hostname; }