X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/77bbf3027c4240a2e833209a3a3f186589da8577..9caf173e476622d309cc5653a83d224d05787cc7:/src/bindings/lua/lua_host.cpp diff --git a/src/bindings/lua/lua_host.cpp b/src/bindings/lua/lua_host.cpp index f511ec38d6..8f7cb8640f 100644 --- a/src/bindings/lua/lua_host.cpp +++ b/src/bindings/lua/lua_host.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2017. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2010-2018. 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. */ @@ -7,9 +7,7 @@ #include "lua_private.hpp" #include "simgrid/s4u/Host.hpp" -extern "C" { #include -} XBT_LOG_NEW_DEFAULT_CATEGORY(lua_host, "Lua Host module"); @@ -77,7 +75,7 @@ static int l_host_get_by_name(lua_State * L) static int l_host_get_name(lua_State * L) { sg_host_t ht = sglua_check_host(L, 1); - lua_pushstring(L, ht->getCname()); + lua_pushstring(L, ht->get_cname()); return 1; }