From 91b95fd9d2176d541587667a190eca515bfa5801 Mon Sep 17 00:00:00 2001 From: Christian Heinrich Date: Wed, 14 Oct 2015 12:22:12 +0200 Subject: [PATCH] [Lua] Fixed compilation issue --- src/bindings/lua/lua_platf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bindings/lua/lua_platf.c b/src/bindings/lua/lua_platf.c index 98bbb2977e..ef416f96f4 100644 --- a/src/bindings/lua/lua_platf.c +++ b/src/bindings/lua/lua_platf.c @@ -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; } -- 2.20.1