X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dff9e15c44ab6340d27215957c56fa72fad246a2..c1196ca10d1165bfaadfd66799bff4e0eec459b5:/src/gras/Virtu/sg_dns.c diff --git a/src/gras/Virtu/sg_dns.c b/src/gras/Virtu/sg_dns.c index c791b314d4..cf15311a87 100644 --- a/src/gras/Virtu/sg_dns.c +++ b/src/gras/Virtu/sg_dns.c @@ -1,8 +1,7 @@ -/* $Id$ */ - /* sg_dns - name resolution (simulator) */ -/* Copyright (c) 2005 Martin Quinson. All rights reserved. */ +/* Copyright (c) 2005, 2007, 2009, 2010. The SimGrid Team. + * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -12,9 +11,5 @@ 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 - return ""; + return SIMIX_host_self_get_name(); }