1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-13 00:46:32 +00:00

Remove nmap.sleep as we just want to have stdnse.sleep.

This commit is contained in:
batrick
2012-08-07 17:25:49 +00:00
parent 7e85545ea3
commit 036d28c898
2 changed files with 1 additions and 5 deletions

View File

@@ -939,7 +939,6 @@ int luaopen_nmap (lua_State *L)
{"new_dnet", nseU_placeholder}, /* imported from nmap.dnet */
{"get_interface_info", nseU_placeholder}, /* imported from nmap.dnet */
{"new_socket", nseU_placeholder}, /* imported from nmap.socket */
{"sleep", nseU_placeholder}, /* imported from nmap.socket */
{"mutex", nseU_placeholder}, /* placeholder */
{"condvar", nseU_placeholder}, /* placeholder */
{NULL, NULL}
@@ -965,9 +964,6 @@ int luaopen_nmap (lua_State *L)
/* nmap.socket.new -> nmap.new_socket. */
lua_getfield(L, -1, "new");
lua_setfield(L, nmap_idx, "new_socket");
/* nmap.socket.sleep -> nmap.sleep. */
lua_getfield(L, -1, "sleep");
lua_setfield(L, nmap_idx, "sleep");
/* Store nmap.socket; used by nse_main.lua. */
lua_setfield(L, nmap_idx, "socket");

View File

@@ -50,7 +50,7 @@ _ENV = require "strict" {};
-- @class function
-- @param t Time to sleep, in seconds.
-- @usage stdnse.sleep(1.5)
_ENV.sleep = nmap.sleep;
_ENV.sleep = nmap.sleep.socket;
---
-- Prints a formatted debug message if the current debugging level is greater