Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Finish the merging of Cristian branch by fixing some of the remaining glitches preven...
[simgrid.git] / src / gras / Virtu / sg_dns.c
index 0f7cfa9..09bba46 100644 (file)
 
 #include "gras/Virtu/virtu_sg.h"
 
-const char *gras_os_myname(void) {
-  m_process_t process = MSG_process_self();
-  if ((process != NULL) && (process->simdata))
-   return MSG_host_get_name(MSG_host_self());
-  else 
+const char *gras_os_myname(void)
+{
+  smx_host_t host = SIMIX_host_self();
+  if (host != NULL)
+    return SIMIX_host_get_name(SIMIX_host_self());
+  else
     return "";
 }