Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[Lua] Fixed compilation issue
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Wed, 14 Oct 2015 10:22:12 +0000 (12:22 +0200)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Thu, 15 Oct 2015 17:17:19 +0000 (19:17 +0200)
src/bindings/lua/lua_platf.c

index 98bbb29..ef416f9 100644 (file)
@@ -127,7 +127,7 @@ int console_add_backbone(lua_State *L) {
   }
 
   sg_platf_new_link(&link);
-  routing_cluster_add_backbone(xbt_lib_get_or_null(link_lib, link.id, SURF_LINK_LEVEL));
+  routing_cluster_add_backbone(sg_link_by_name(link.id));
 
   return 0;
 }
@@ -182,7 +182,7 @@ int console_add_host(lua_State *L) {
   // we get values from the table passed as argument
   if (!lua_istable(L, -1)) {
     XBT_ERROR
-        ("Bad Arguments to create host, Should be a table with named arguments");
+        ("Bad Arguments to create host. Should be a table with named arguments");
     return -1;
   }