From a67ada65709ed3a4b7384dcb9d1fc814da98d29b Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sat, 20 Feb 2016 00:10:50 +0100 Subject: [PATCH] . --- src/bindings/lua/lua_platf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bindings/lua/lua_platf.cpp b/src/bindings/lua/lua_platf.cpp index b40e2c7240..18ae0e2394 100644 --- a/src/bindings/lua/lua_platf.cpp +++ b/src/bindings/lua/lua_platf.cpp @@ -448,7 +448,7 @@ int console_add_ASroute(lua_State *L) { lua_pushstring(L, "gw_src"); lua_gettable(L, -2); - char *name = lua_tostring(L, -1); + const char *name = lua_tostring(L, -1); ASroute.gw_src = sg_netcard_by_name_or_null(name); if (ASroute.gw_src == NULL) { XBT_ERROR("Attribute 'gw_src' of AS route does not name a valid machine: %s", name); -- 2.20.1