From c1e987e0624ebf509a6d86099dd47ae6d72a8c03 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Thu, 20 Apr 2023 16:16:16 -0600 Subject: [PATCH] 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 --- sys/tools/makesyscalls.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/tools/makesyscalls.lua b/sys/tools/makesyscalls.lua index 00e5e74512e0..1f352c505160 100644 --- a/sys/tools/makesyscalls.lua +++ b/sys/tools/makesyscalls.lua @@ -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