X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8d545185124c10e9c58d954d12103d6620e201d2..d92bb5e90dbe8bd7eead32aba6941a4341fcf204:/src/simix/smx_host.c diff --git a/src/simix/smx_host.c b/src/simix/smx_host.c index 8c7fc7f15a..17bc3c93dd 100644 --- a/src/simix/smx_host.c +++ b/src/simix/smx_host.c @@ -19,9 +19,8 @@ static void SIMIX_execution_finish(smx_synchro_t synchro); /** * \brief Internal function to create a SIMIX host. * \param name name of the host to create - * \param data some user data (may be NULL) */ -sg_host_t SIMIX_host_create(const char *name, void *killme) // FIXME: braindead prototype. Take sg_host as first arg +void SIMIX_host_create(const char *name) // FIXME: braindead prototype. Take sg_host as parameter { sg_host_t host = xbt_lib_get_elm_or_null(host_lib, name); smx_host_priv_t smx_host = xbt_new0(s_smx_host_priv_t, 1); @@ -33,8 +32,6 @@ sg_host_t SIMIX_host_create(const char *name, void *killme) // FIXME: braindead /* Update global variables */ sg_host_simix_set(host, smx_host); - - return host; } /** @@ -152,10 +149,6 @@ void SIMIX_host_destroy(void *h) } sg_host_t SIMIX_host_get_by_name(const char *name){ - xbt_assert(((simix_global != NULL) - && (host_lib != NULL)), - "Environment not set yet"); - return xbt_lib_get_elm_or_null(host_lib, name); }