Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
typo
[simgrid.git] / src / msg / host.c
index 76b88aa..2d700c4 100644 (file)
@@ -41,7 +41,7 @@ m_host_t __MSG_host_create(smx_host_t workstation, void *data)
   host->simdata = simdata;
   host->data = data;
 
-  simdata->host = workstation;
+  simdata->s_host = workstation;
 
   simdata->mbox = xbt_new0(xbt_fifo_t, msg_global->max_channel);
   for (i = 0; i < msg_global->max_channel; i++)
@@ -117,7 +117,7 @@ m_host_t MSG_host_self(void)
 }
 
 /*
- * Real function for destroy a host.
+ * Real function to destroy a host.
  * MSG_host_destroy is just  a front_end that also removes it from 
  * msg_global->host
  */
@@ -129,7 +129,7 @@ void __MSG_host_destroy(m_host_t host)
   xbt_assert0((host != NULL), "Invalid parameters");
 
   /* Clean Simulator data */
-       /* SIMIX host will be cleaned when MSG_clean calls SIMIX_clean */
+   /* SIMIX host will be cleaned when MSG_clean calls SIMIX_clean */
   simdata = (host)->simdata;
 
   for (i = 0; i < msg_global->max_channel; i++)
@@ -182,7 +182,7 @@ double MSG_get_host_speed(m_host_t h)
 {
   xbt_assert0((h!= NULL), "Invalid parameters");
 
-  return(SIMIX_host_get_speed(h->simdata->host));
+  return(SIMIX_host_get_speed(h->simdata->s_host));
 }
 
 /** \ingroup msg_gos_functions
@@ -193,5 +193,5 @@ double MSG_get_host_speed(m_host_t h)
 int MSG_host_is_avail (m_host_t h)
 {
   xbt_assert0((h!= NULL), "Invalid parameters");
-       return (SIMIX_host_get_state(h->simdata->host));
+       return (SIMIX_host_get_state(h->simdata->s_host));
 }