- char *name;
- msg_file_priv_t priv = xbt_new(s_msg_file_priv_t, 1);
- priv->data = data;
- priv->fullpath = xbt_strdup(fullpath);
- priv->simdata = xbt_new0(s_simdata_file_t,1);
- priv->simdata->smx_file = simcall_file_open(fullpath, MSG_host_self());
- priv->desc_id = MSG_host_get_file_descriptor_id(MSG_host_self());
-
- name = bprintf("%s:%s:%d", priv->fullpath, MSG_host_self()->cname(), priv->desc_id);
+ msg_file_t fd = xbt_new(s_msg_file_priv_t, 1);
+ fd->data = data;
+ fd->fullpath = xbt_strdup(fullpath);
+ fd->simdata = xbt_new0(s_simdata_file_t, 1);
+ fd->simdata->smx_file = simcall_file_open(fullpath, MSG_host_self());
+ fd->desc_id = MSG_host_get_file_descriptor_id(MSG_host_self());