- struct_cluster = xbt_new0(s_surf_parsing_cluster_arg_t, 1);
- struct_cluster->id = A_surfxml_cluster_id;
- struct_cluster->prefix = A_surfxml_cluster_prefix;
- struct_cluster->suffix = A_surfxml_cluster_suffix;
- struct_cluster->radical = A_surfxml_cluster_radical;
- struct_cluster->power= surf_parse_get_double(A_surfxml_cluster_power);
- struct_cluster->core_amount = surf_parse_get_int(A_surfxml_cluster_core);
- struct_cluster->bw = surf_parse_get_double(A_surfxml_cluster_bw);
- struct_cluster->lat = surf_parse_get_double(A_surfxml_cluster_lat);
+ s_sg_platf_cluster_cbarg_t cluster;
+ memset(&cluster,0,sizeof(cluster));
+ cluster.id = A_surfxml_cluster_id;
+ cluster.prefix = A_surfxml_cluster_prefix;
+ cluster.suffix = A_surfxml_cluster_suffix;
+ cluster.radical = A_surfxml_cluster_radical;
+ cluster.power= surf_parse_get_double(A_surfxml_cluster_power);
+ cluster.core_amount = surf_parse_get_int(A_surfxml_cluster_core);
+ cluster.bw = surf_parse_get_double(A_surfxml_cluster_bw);
+ cluster.lat = surf_parse_get_double(A_surfxml_cluster_lat);