Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
less void*
authorMartin Quinson <martin.quinson@loria.fr>
Fri, 12 Feb 2016 08:28:11 +0000 (09:28 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Fri, 12 Feb 2016 08:28:11 +0000 (09:28 +0100)
src/include/surf/surf.h
src/surf/surf_routing.cpp

index faf5f7e..7bb0115 100644 (file)
@@ -1004,7 +1004,7 @@ void instr_routing_platform_graph_export_graphviz (xbt_graph_t g, const char *fi
 /********** Routing **********/
 void routing_AS_begin(sg_platf_AS_cbarg_t AS);
 void routing_AS_end(void);
-void routing_cluster_add_backbone(void* bb);
+void routing_cluster_add_backbone(Link* bb);
 surf_As* routing_get_current();
 
 SG_END_DECL()
index f36740d..8bad717 100644 (file)
@@ -456,13 +456,13 @@ void routing_model_create( void *loopback)
 /* ************************************************************************** */
 /* ************************* GENERIC PARSE FUNCTIONS ************************ */
 
-void routing_cluster_add_backbone(void* bb) {
+void routing_cluster_add_backbone(simgrid::surf::Link* bb) {
   simgrid::surf::AsCluster *cluster = dynamic_cast<simgrid::surf::AsCluster*>(current_routing);
 
   xbt_assert(cluster, "Only hosts from Cluster can get a backbone.");
   xbt_assert(nullptr == cluster->p_backbone, "Cluster %s already has a backbone link!", cluster->name_);
 
-  cluster->p_backbone = static_cast<simgrid::surf::Link*>(bb);
+  cluster->p_backbone = bb;
   XBT_DEBUG("Add a backbone to AS '%s'", current_routing->name_);
 }