git: c1e987e0624e - main - makesyscalls.lua: Minor fluff removal
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 20 Apr 2023 22:19:27 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=c1e987e0624ebf509a6d86099dd47ae6d72a8c03
commit c1e987e0624ebf509a6d86099dd47ae6d72a8c03
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2023-04-20 22:16:16 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-04-20 22:17:58 +0000
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