summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThijs Schreijer <thijs@thijsschreijer.nl>2024-06-08 09:07:16 +0200
committerThijs Schreijer <thijs@thijsschreijer.nl>2024-06-08 09:07:16 +0200
commit52562e9986f8f5a4d2dda4333acba110734def0f (patch)
treee7cde20ff0542568dfd2234240899196e9dd0e6d
parent98d68962584970bd467ab53b1d74cda46e322b15 (diff)
downloadluasystem-52562e9986f8f5a4d2dda4333acba110734def0f.zip
fix linter errors
-rw-r--r--system/init.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/system/init.lua b/system/init.lua
index eee8bf6..0c94d35 100644
--- a/system/init.lua
+++ b/system/init.lua
@@ -170,7 +170,7 @@ function system.listconsoleflags(fh)
local flags = assert(system.getconsoleflags(fh))
local out = {}
- for k,v in pairs(sys) do
+ for k,v in pairs(system) do
if type(k) == "string" and k:sub(1,4) == flagtype then
if flags:has_all_of(v) then
out[#out+1] = string.format("%10d [x] %s",v:value(),k)
@@ -207,7 +207,7 @@ function system.listtermflags(fh)
for _, flagtype in ipairs { "iflag", "oflag", "lflag" } do
local prefix = flagtype:sub(1,1):upper() .. "_" -- I_, O_, or L_, the constant prefixes
local out = {}
- for k,v in pairs(sys) do
+ for k,v in pairs(system) do
if type(k) == "string" and k:sub(1,2) == prefix then
if flags[flagtype]:has_all_of(v) then
out[#out+1] = string.format("%10d [x] %s",v:value(),k)
@@ -375,4 +375,4 @@ end
-return sys
+return system