Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix for msg_icomms test. Do not pass the address of a local variable to
authorcristianrosa <cristianrosa@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 1 Oct 2010 12:35:12 +0000 (12:35 +0000)
committercristianrosa <cristianrosa@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 1 Oct 2010 12:35:12 +0000 (12:35 +0000)
SIMIX_network_irecv().[Arnaud Giersch]

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8317 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/msg/gos.c

index d9f7c02..d7a2e3a 100644 (file)
@@ -465,7 +465,6 @@ msg_comm_t MSG_task_irecv(m_task_t * task, const char *alias) {
        smx_comm_t comm;
        smx_rdv_t rdv = MSG_mailbox_get_by_alias(alias)->rdv;
        msg_mailbox_t mailbox=MSG_mailbox_get_by_alias(alias);
        smx_comm_t comm;
        smx_rdv_t rdv = MSG_mailbox_get_by_alias(alias)->rdv;
        msg_mailbox_t mailbox=MSG_mailbox_get_by_alias(alias);
-       size_t size = sizeof(void*);
 
        CHECK_HOST();
 
 
        CHECK_HOST();
 
@@ -485,7 +484,7 @@ msg_comm_t MSG_task_irecv(m_task_t * task, const char *alias) {
                CRITICAL0("MSG_task_get() was asked to write in a non empty task struct.");
 
        /* Try to receive it by calling SIMIX network layer */
                CRITICAL0("MSG_task_get() was asked to write in a non empty task struct.");
 
        /* Try to receive it by calling SIMIX network layer */
-       return SIMIX_network_irecv(rdv, task, &size);
+       return SIMIX_network_irecv(rdv, task, NULL);
 }
 /** \ingroup msg_gos_functions
  * \brief Test the status of a communication.
 }
 /** \ingroup msg_gos_functions
  * \brief Test the status of a communication.