Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove all xbt_assert.*(0,FALSE or NULL for xbt_die
[simgrid.git] / src / msg / host.c
index 8d8c075..20541bc 100644 (file)
@@ -50,7 +50,7 @@ m_host_t __MSG_host_create(smx_host_t workstation, void *data)
     sprintf(alias, "%s:%d", name, i);
 
     /* the key of the mailbox (in this case) is build from the name of the host and the channel number */
-    simdata->mailboxes[i] = MSG_mailbox_new(xbt_strdup(alias));
+    simdata->mailboxes[i] = MSG_mailbox_new(alias);
     memset(alias, 0, MAX_ALIAS_NAME + 1);
   }
 
@@ -180,7 +180,7 @@ m_host_t *MSG_get_host_table(void)
 int MSG_get_host_msgload(m_host_t h)
 {
   xbt_assert0((h != NULL), "Invalid parameters");
-  xbt_assert0(0, "Not implemented yet");
+  xbt_die( "Not implemented yet");
 
   return (0);
 }