makesyscalls.lua: Minor fluff removal

luacheck pointed out two minor issues: line isn't declared as a global,
so declare it local. Also remove an unused parameter.

Suggested by:		kevans
Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2023-04-20 16:16:16 -06:00
parent 8341a74afe
commit c1e987e062

View File

@ -522,7 +522,7 @@ local pattern_table = {
pattern = "%%ABI_HEADERS%%",
process = function()
if config.abi_headers ~= "" then
line = config.abi_headers .. "\n"
local line = config.abi_headers .. "\n"
write_line("sysinc", line)
end
end,
@ -1052,7 +1052,7 @@ local function handle_unimpl(sysnum, sysstart, sysend, comment)
end
end
local function handle_reserved(sysnum, sysstart, sysend, comment)
local function handle_reserved(sysnum, sysstart, sysend)
handle_unimpl(sysnum, sysstart, sysend, "reserved for local use")
end