mirror of
https://github.com/nmap/nmap.git
synced 2026-01-03 13:19:04 +00:00
Remove the "cols" parameter from calls to tab.new.
This commit is contained in:
@@ -426,7 +426,7 @@ function add_zone_info(response)
|
||||
offset = parse_records(add_answers, data, RR, offset)
|
||||
end
|
||||
|
||||
local outtab, nhosts = tab.new(2), 0
|
||||
local outtab, nhosts = tab.new(), 0
|
||||
local newhosts_count, status, ret = 0, false
|
||||
|
||||
tab.nextrow(outtab)
|
||||
@@ -588,7 +588,7 @@ action = function(host, port)
|
||||
return stdnse.format_output(true, ret)
|
||||
-- dump axfr results
|
||||
else
|
||||
local table = tab.new(3)
|
||||
local table = tab.new()
|
||||
local status, ret = dump_zone_info(table, response_str)
|
||||
if not status then
|
||||
return stdnse.format_output(false, ret)
|
||||
|
||||
@@ -391,7 +391,7 @@ end
|
||||
-- @param forwarded array of ports we discovered as forwarded, one row per protocol
|
||||
-- @return the report string
|
||||
local function report(tested, forwarded)
|
||||
local output = tab.new(2)
|
||||
local output = tab.new()
|
||||
|
||||
tab.add(output, 1, "PROTOCOL")
|
||||
tab.add(output, 2, "FORWARDED PORTS")
|
||||
|
||||
@@ -207,7 +207,7 @@ local function nfs_ls(nfs, mount, results, access)
|
||||
end
|
||||
|
||||
local function report(nfs, table)
|
||||
local outtab, time = tab.new(6), ""
|
||||
local outtab, time = tab.new(), ""
|
||||
|
||||
if nfs.time == "mtime" then
|
||||
time = "MODIFICATION TIME"
|
||||
|
||||
@@ -84,7 +84,7 @@ local function report(nfs, tables)
|
||||
end
|
||||
|
||||
if nfs.version == 2 then
|
||||
outtab = tab.new(6)
|
||||
outtab = tab.new()
|
||||
tab.nextrow(outtab)
|
||||
tab.addrow(outtab, tab_filesys, tab_size, tab_used,
|
||||
tab_avail, tab_use, tab_bs)
|
||||
@@ -94,7 +94,7 @@ local function report(nfs, tables)
|
||||
t.used, t.available, t.use, t.bsize)
|
||||
end
|
||||
elseif nfs.version == 3 then
|
||||
outtab = tab.new(7)
|
||||
outtab = tab.new()
|
||||
tab.nextrow(outtab)
|
||||
tab.addrow(outtab, tab_filesys, tab_size, tab_used,
|
||||
tab_avail, tab_use, tab_maxfs, tab_linkmax)
|
||||
|
||||
@@ -231,7 +231,7 @@ end
|
||||
-- @return Output report
|
||||
local report = function(stats)
|
||||
local j
|
||||
local outtab = tab.new(5)
|
||||
local outtab = tab.new()
|
||||
|
||||
tab.add(outtab, 1, "PORT")
|
||||
tab.add(outtab, 2, "FAMILY")
|
||||
|
||||
Reference in New Issue
Block a user