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 509b89d..09bba46 100644 (file)
 
 #include "gras/Virtu/virtu_sg.h"
 
-const char *gras_os_myname(void) {
-  smx_process_t process = SIMIX_process_self();
-  if ((process != NULL) && (process->simdata))
-   return SIMIX_host_get_name(SIMIX_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 "";
 }