Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use msg_host_t instead of m_host_t.
[simgrid.git] / examples / msg / masterslave / masterslave_cluster.c
index 6d78433..83d2cb8 100644 (file)
@@ -26,7 +26,7 @@ int slave(int argc, char *argv[]);
 int master(int argc, char *argv[])
 {
   int slaves_count = 0;
-  m_host_t *slaves = NULL;
+  msg_host_t *slaves = NULL;
   m_task_t *todo = NULL;
   int number_of_tasks = 0;
   double task_comp_size = 0;
@@ -56,7 +56,7 @@ int master(int argc, char *argv[])
 
   {                             /* Process organisation */
     slaves_count = argc - 4;
-    slaves = xbt_new0(m_host_t, slaves_count);
+    slaves = xbt_new0(msg_host_t, slaves_count);
 
     for (i = 4; i < argc; i++) {
       slaves[i - 4] = MSG_get_host_by_name(argv[i]);