Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix constness of arguments
[simgrid.git] / src / msg / host.c
index 2b933f9..12b0d5c 100644 (file)
@@ -187,13 +187,13 @@ double MSG_get_host_speed(m_host_t h)
 }
 
 /** \ingroup m_host_management
- * \brief Returns the value of a certain host property
+ * \brief Returns the value of a given host property
  *
  * \param host a host
  * \param name a property name
- * \return value of a property
+ * \return value of a property (or NULL if property not set)
  */
-const char* MSG_host_get_property_value(m_host_t host, char* name)
+const char* MSG_host_get_property_value(m_host_t host, const char* name)
 {
   return xbt_dict_get_or_null(MSG_host_get_properties(host), name);
 }