Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix compilation when using MSG_USE_DEPRECATED
authornavarro <navarro@caraja.(none)>
Tue, 22 May 2012 09:35:29 +0000 (11:35 +0200)
committernavarro <navarro@caraja.(none)>
Tue, 22 May 2012 09:35:29 +0000 (11:35 +0200)
src/msg/msg_gos.c
src/msg/msg_mailbox.c

index 4c49b23..3582956 100644 (file)
@@ -1033,7 +1033,7 @@ MSG_task_put_with_timeout(m_task_t task, m_host_t dest,
               && (channel < msg_global->max_channel), "Invalid channel %d",
               channel);
 
-  XBT_DEBUG("MSG_task_put_with_timout: Trying to send a task to '%s'", dest->name);
+  XBT_DEBUG("MSG_task_put_with_timout: Trying to send a task to '%s'", dest->smx_host->name);
   return
       MSG_mailbox_put_with_timeout(MSG_mailbox_get_by_channel
                                    (dest, channel), task, timeout);
index 9b94299..5fd54c3 100644 (file)
@@ -8,6 +8,7 @@
 
 #include "msg_mailbox.h"
 #include "msg_private.h"
+
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(msg_mailbox, msg,
                                 "Logging specific to MSG (mailbox)");
 
@@ -192,6 +193,6 @@ msg_mailbox_t MSG_mailbox_get_by_channel(m_host_t host,
               && (channel < msg_global->max_channel), "Invalid channel %d",
               channel);
 
-  return host->simdata->mailboxes[(size_t) channel];
+  return host->mailboxes[(size_t) channel];
 }
 #endif