X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b8df87e176f27b25534f27d7e240defa32ca35bc..06adfe7abf074f1a28558de4fcebec7e79effc34:/src/mc/remote/Channel.cpp diff --git a/src/mc/remote/Channel.cpp b/src/mc/remote/Channel.cpp index 7594e5e68b..6eaf30da05 100644 --- a/src/mc/remote/Channel.cpp +++ b/src/mc/remote/Channel.cpp @@ -4,16 +4,14 @@ /* 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. */ +#include "src/mc/remote/Channel.hpp" +#include + #include #include - #include #include -#include - -#include "src/mc/remote/Channel.hpp" - XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_Channel, mc, "MC interprocess communication"); namespace simgrid { @@ -38,7 +36,7 @@ int Channel::send(const void* message, size_t size) const ssize_t Channel::receive(void* message, size_t size, bool block) const { - int res = recv(this->socket_, message, size, block ? 0 : MSG_DONTWAIT); + ssize_t res = recv(this->socket_, message, size, block ? 0 : MSG_DONTWAIT); if (res != -1) XBT_DEBUG("Receive %s", MC_message_type_name(*(e_mc_message_type*)message)); return res;