X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/04cb6e6a844ba34246d7ba001452f8aeaed9a6f9..70388188c97f56fbe2b645c9b00dcb05d0b86509:/src/surf/network_constant.c diff --git a/src/surf/network_constant.c b/src/surf/network_constant.c index 4c9db111f3..f4251f081d 100644 --- a/src/surf/network_constant.c +++ b/src/surf/network_constant.c @@ -21,14 +21,14 @@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(surf_network); static random_data_t random_latency = NULL; static int host_number_int = 0; -static void netcste_count_hosts(void) +static void netcste_count_hosts(surf_parsing_host_arg_t h) { host_number_int++; } static void netcste_define_callbacks(void) { - surfxml_add_callback(STag_surfxml_host_cb_list, &netcste_count_hosts); + surf_parse_host_add_cb(netcste_count_hosts); } static int netcste_resource_used(void *resource_id)