mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
makesyscalls.lua: trim trailing spaces/commas from args
These are insignificant as far as declarations go, and we've historically allowed it. fhlinkat in ^/sys/kern/syscalls.master, for example, currently has a trailing comma after its final argument that this version of makesyscalls is ignoring (not by conscious decision). Fix it for now by actively stripping off trailing whitespace/commas until we decide to actively prohibit it.
This commit is contained in:
parent
87d4212b1d
commit
0d80770c71
1 changed files with 1 additions and 0 deletions
|
|
@ -1010,6 +1010,7 @@ process_syscall_def = function(line)
|
|||
abort(1, "Not a signature? " .. line)
|
||||
end
|
||||
args = line:match("^[^(]+%((.+)%)[^)]*$")
|
||||
args = trim(args, '[,%s]')
|
||||
end
|
||||
|
||||
::skipalt::
|
||||
|
|
|
|||
Loading…
Reference in a new issue