- struct_peer = xbt_new0(s_surf_parsing_peer_arg_t, 1);
- struct_peer->id = A_surfxml_peer_id;
- struct_peer->power = surf_parse_get_double(A_surfxml_peer_power);
- struct_peer->bw_in = surf_parse_get_double(A_surfxml_peer_bw_in);
- struct_peer->bw_out = surf_parse_get_double(A_surfxml_peer_bw_out);
- struct_peer->lat = surf_parse_get_double(A_surfxml_peer_lat);
- struct_peer->coord = A_surfxml_peer_coordinates;
- struct_peer->availability_trace = tmgr_trace_new(A_surfxml_peer_availability_file);
- struct_peer->state_trace = tmgr_trace_new(A_surfxml_peer_state_file);
+ s_sg_platf_peer_cbarg_t peer;
+ memset(&peer,0,sizeof(peer));
+ peer.id = A_surfxml_peer_id;
+ peer.power = surf_parse_get_double(A_surfxml_peer_power);
+ peer.bw_in = surf_parse_get_double(A_surfxml_peer_bw_in);
+ peer.bw_out = surf_parse_get_double(A_surfxml_peer_bw_out);
+ peer.lat = surf_parse_get_double(A_surfxml_peer_lat);
+ peer.coord = A_surfxml_peer_coordinates;
+ peer.availability_trace = tmgr_trace_new(A_surfxml_peer_availability_file);
+ peer.state_trace = tmgr_trace_new(A_surfxml_peer_state_file);
+