- xbt_assert(e_route_cnt, "no route between \"%s\" and \"%s\"",
- src_father->name, dst_father->name);
-
- xbt_assert((e_route_cnt->src_gateway == NULL) ==
- (e_route_cnt->dst_gateway == NULL),
- "bad gateway for route between \"%s\" and \"%s\"", src, dst);
-
- *route = xbt_dynar_new(global_routing->size_of_link, NULL);
-
- if (latency) {
- *latency += common_father->get_latency(common_father,
- src_father->name, dst_father->name,
- e_route_cnt);
- }
+ xbt_assert((route.src_gateway != NULL) && (route.dst_gateway != NULL),
+ "bad gateways for route from \"%s\" to \"%s\"", src, dst);