git: 3a13adb4c55c - stable/13 - makesyscalls.lua: Minor fluff removal
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 26 Oct 2023 03:52:20 UTC
The branch stable/13 has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=3a13adb4c55c6447082e93aea660f49a04a51348
commit 3a13adb4c55c6447082e93aea660f49a04a51348
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2023-04-20 22:16:16 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-10-26 03:48:35 +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
(cherry picked from commit c1e987e0624ebf509a6d86099dd47ae6d72a8c03)
---
sys/tools/makesyscalls.lua | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/sys/tools/makesyscalls.lua b/sys/tools/makesyscalls.lua
index 63e86f6c0269..aa7e18bef853 100644
--- a/sys/tools/makesyscalls.lua
+++ b/sys/tools/makesyscalls.lua
@@ -450,12 +450,12 @@ local pattern_table = {
maxsyscall = savesyscall
end
line = line .. "\n"
- write_line('sysent', line)
- write_line('sysdcl', line)
- write_line('sysarg', line)
- write_line_pfile('syscompat[0-9]*$', line)
- write_line('sysnames', line)
- write_line_pfile('systrace.*', line)
+ write_line("sysent", line)
+ write_line("sysdcl", line)
+ write_line("sysarg", line)
+ write_line_pfile("syscompat[0-9]*$", line)
+ write_line("sysnames", line)
+ write_line_pfile("systrace.*", line)
end,
},
{
@@ -906,7 +906,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