X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/45d00a93682182156762f2ca97b1f2746746c8b1..a15797ea55151ddfdbae48147e74159efe01b411:/src/msg/msg_host.cpp diff --git a/src/msg/msg_host.cpp b/src/msg/msg_host.cpp index c5e8a474e1..917421da5c 100644 --- a/src/msg/msg_host.cpp +++ b/src/msg/msg_host.cpp @@ -13,7 +13,6 @@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(msg); /** @addtogroup m_host_management - * \htmlonly \endhtmlonly * (#msg_host_t) and the functions for managing it. * * A location (or host) is any possible place where a process may run. Thus it may be represented @@ -228,8 +227,7 @@ void MSG_host_set_property_value(msg_host_t host, const char *name, char *value, */ int MSG_host_is_on(msg_host_t host) { - xbt_assert((host != NULL), "Invalid parameters (host is NULL)"); - return sg_host_is_on(host); + return host->isOn(); } /** @ingroup m_host_management @@ -239,8 +237,7 @@ int MSG_host_is_on(msg_host_t host) */ int MSG_host_is_off(msg_host_t host) { - xbt_assert((host != NULL), "Invalid parameters (host is NULL)"); - return !(sg_host_is_on(host)); + return host->isOff(); } /** \ingroup m_host_management