- dst_nb = after->workstation_nb;
- after->workstation_list = (SD_workstation_t*) xbt_realloc(
- after->workstation_list,
- (after->workstation_nb+count)*sizeof(s_SD_workstation_t));
- for(i=after->workstation_nb - 1; i>=0; i--)
- after->workstation_list[count+i] = after->workstation_list[i];
+ dst_nb = after->host_count;
+ after->host_list = (sg_host_t*) xbt_realloc(
+ after->host_list,
+ (after->host_count+count)*sizeof(sg_host_t));
+ for(i=after->host_count - 1; i>=0; i--)
+ after->host_list[count+i] = after->host_list[i];