From: Arnaud Giersch Date: Tue, 10 Dec 2013 15:51:31 +0000 (+0100) Subject: Fix build with MSG_USE_DEPRECATED. X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/9b46d8fd10cab4d6dfb9664c7dbabfa5a2a26be9?hp=9a82cac1b6f73bb342495c39807acd7380e153d5 Fix build with MSG_USE_DEPRECATED. (cherry picked from commit f89bfaee2e744ff4516d025623b33fe11e7a544c) --- diff --git a/src/msg/msg_gos.c b/src/msg/msg_gos.c index 3bdc8d85a0..5b2109aa72 100644 --- a/src/msg/msg_gos.c +++ b/src/msg/msg_gos.c @@ -1218,7 +1218,7 @@ MSG_task_put_with_timeout(msg_task_t task, msg_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'", SIMIX_host_get_name(dest->smx_host)); + XBT_DEBUG("MSG_task_put_with_timout: Trying to send a task to '%s'", MSG_host_get_name(dest)); return MSG_mailbox_put_with_timeout(MSG_mailbox_get_by_channel (dest, channel), task, timeout); diff --git a/src/msg/msg_mailbox.c b/src/msg/msg_mailbox.c index 83840e5c73..6082642267 100644 --- a/src/msg/msg_mailbox.c +++ b/src/msg/msg_mailbox.c @@ -292,6 +292,6 @@ msg_mailbox_t MSG_mailbox_get_by_channel(msg_host_t host, && (channel < msg_global->max_channel), "Invalid channel %d", channel); - return host->mailboxes[(size_t) channel]; + return MSG_host_priv(host)->mailboxes[(size_t) channel]; } #endif