X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/13bf12b18f191192a6ba4f0ef5452b88986aa88f..07c12189c716ea527ddcf8f8b55983213dead2bf:/src/surf/xml/surfxml_sax_cb.cpp diff --git a/src/surf/xml/surfxml_sax_cb.cpp b/src/surf/xml/surfxml_sax_cb.cpp index d9a4c52e94..47cf277f5e 100644 --- a/src/surf/xml/surfxml_sax_cb.cpp +++ b/src/surf/xml/surfxml_sax_cb.cpp @@ -11,7 +11,7 @@ #include "simgrid/link.h" #include "simgrid/s4u/engine.hpp" #include "simgrid/sg_config.h" -#include "src/kernel/routing/NetCard.hpp" +#include "src/kernel/routing/NetPoint.hpp" #include "src/surf/network_interface.hpp" #include "src/surf/surf_private.h" #include "xbt/dict.h" @@ -523,13 +523,7 @@ void STag_surfxml_host___link(){ } void STag_surfxml_router(){ - s_sg_platf_router_cbarg_t router; - memset(&router, 0, sizeof(router)); - - router.id = A_surfxml_router_id; - router.coord = A_surfxml_router_coordinates; - - sg_platf_new_router(&router); + sg_platf_new_router(A_surfxml_router_id, A_surfxml_router_coordinates); } void ETag_surfxml_cluster(){