From 0d80770c71cd701171a88d8341ab97ecd6566a7f Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Wed, 11 Dec 2019 19:32:52 +0000 Subject: 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. --- sys/tools/makesyscalls.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/tools') diff --git a/sys/tools/makesyscalls.lua b/sys/tools/makesyscalls.lua index 8bb763d65da9..566ce5bafc51 100644 --- a/sys/tools/makesyscalls.lua +++ b/sys/tools/makesyscalls.lua @@ -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:: -- cgit v1.2.3