From 455b26c4b631dbc5ffbfb64e79a0fb8dc708dde2 Mon Sep 17 00:00:00 2001 From: navarro Date: Mon, 12 Mar 2012 10:31:38 +0100 Subject: [PATCH 1/1] Fix ns3 tesh. --- examples/msg/ns3/Two_clusters.xml | 5 ----- src/surf/network_ns3.c | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/examples/msg/ns3/Two_clusters.xml b/examples/msg/ns3/Two_clusters.xml index 0aa41eabef..efc5e100df 100644 --- a/examples/msg/ns3/Two_clusters.xml +++ b/examples/msg/ns3/Two_clusters.xml @@ -40,10 +40,5 @@ gw_dst="c-my_cluster_2_router.me"> - - - diff --git a/src/surf/network_ns3.c b/src/surf/network_ns3.c index 8a114b8e67..cf02267d36 100644 --- a/src/surf/network_ns3.c +++ b/src/surf/network_ns3.c @@ -90,7 +90,7 @@ static void parse_ns3_add_link(sg_platf_link_cbarg_t link) XBT_INFO("The NS3 network model doesn't support link state traces"); ns3_link_t link_ns3 = xbt_new0(s_ns3_link_t,1);; - link_ns3->id = (char*)(link->id); + link_ns3->id = xbt_strdup((char*)(link->id)); link_ns3->bdw = bprintf("%f",link->bandwidth); link_ns3->lat = bprintf("%f",link->latency); -- 2.20.1