Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove one of the many pimple: HostModel::p_cpuModel
[simgrid.git] / src / surf / network_gtnets.cpp
index 5570c20..d6a35e3 100644 (file)
@@ -1,3 +1,9 @@
+/* Copyright (c) 2013-2014. The SimGrid Team.
+ * All rights reserved.                                                     */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
 #include "network_gtnets.hpp"
 
 static double time_to_next_flow_completion = -1;
@@ -18,7 +24,7 @@ void newRoute(int src_id, int dst_id,
                      xbt_dynar_t links, int nb_link)
 {
   void *_link;
-  NetworkGTNetsLinkPtr link;
+  NetworkGTNetsLink *link;
   unsigned int cursor;
   int i = 0;
   int *gtnets_links;
@@ -30,7 +36,7 @@ void newRoute(int src_id, int dst_id,
   gtnets_links = xbt_new0(int, nb_link);
   i = 0;
   xbt_dynar_foreach(links, cursor, _link) {
-       link = (NetworkGTNetsLinkPtr) _link;
+       link = (NetworkGTNetsLink*) _link;
     gtnets_links[i++] = link->m_id;
   }
 
@@ -41,7 +47,7 @@ void newRoute(int src_id, int dst_id,
 }
 
 void newRouteOnehop(int src_id, int dst_id,
-                    NetworkGTNetsLinkPtr link)
+                    NetworkGTNetsLink *link)
 {
   if (gtnets_add_onehop_route(src_id, dst_id, link->m_id)) {
     xbt_die("Cannot create GTNetS route");