Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
These function don't return anything
authorChristophe Thiéry <christopho128@gmail.com>
Wed, 9 Nov 2011 19:22:53 +0000 (20:22 +0100)
committerChristophe Thiéry <christopho128@gmail.com>
Wed, 9 Nov 2011 19:22:53 +0000 (20:22 +0100)
src/bindings/lua/simgrid_lua.c

index 1cee499..fdaa403 100644 (file)
@@ -448,7 +448,7 @@ static int l_host_sleep(lua_State *L)
 {
   int time = luaL_checknumber(L, 1);
   MSG_process_sleep(time);
 {
   int time = luaL_checknumber(L, 1);
   MSG_process_sleep(time);
-  return 1;
+  return 0;
 }
 
 /**
 }
 
 /**
@@ -462,7 +462,7 @@ static int l_host_destroy(lua_State *L)
 {
   m_host_t ht = sglua_checkhost(L, 1);
   __MSG_host_destroy(ht);
 {
   m_host_t ht = sglua_checkhost(L, 1);
   __MSG_host_destroy(ht);
-  return 1;
+  return 0;
 }
 
 static const luaL_reg host_functions[] = {
 }
 
 static const luaL_reg host_functions[] = {