]> AND Public Git Repository - simgrid.git/blobdiff - examples/msg/migration/migration.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use msg_host_t instead of m_host_t.
[simgrid.git] / examples / msg / migration / migration.c
index eb3c78affe2046292678037c9eefa8b2c716ab16..fef2e709514ad4653d0dc6d17f43be00377cad1c 100644 (file)
@@ -21,7 +21,7 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test,
 
 xbt_mutex_t mutex = NULL;
 xbt_cond_t cond = NULL;
-static m_process_t process_to_migrate = NULL;
+static msg_process_t process_to_migrate = NULL;
 
 /** The guy we will move from host to host. It move alone and then is moved by policeman back  */
 static int emigrant(int argc, char *argv[])
@@ -45,7 +45,7 @@ static int emigrant(int argc, char *argv[])
   xbt_cond_broadcast(cond);
   xbt_mutex_release(mutex);
   MSG_process_suspend(MSG_process_self());
-  m_host_t h = MSG_process_get_host(MSG_process_self());
+  msg_host_t h = MSG_process_get_host(MSG_process_self());
   XBT_INFO("I've been moved on this new host: %s", MSG_host_get_name(h));
   XBT_INFO("Uh, nothing to do here. Stopping now");
   return 0;