From: Martin Quinson Date: Fri, 19 Feb 2016 23:10:50 +0000 (+0100) Subject: . X-Git-Tag: v3_13~780 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/a67ada65709ed3a4b7384dcb9d1fc814da98d29b . --- 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);