diff options
author | Thijs Schreijer <thijs@thijsschreijer.nl> | 2024-06-08 09:07:16 +0200 |
---|---|---|
committer | Thijs Schreijer <thijs@thijsschreijer.nl> | 2024-06-08 09:07:16 +0200 |
commit | 52562e9986f8f5a4d2dda4333acba110734def0f (patch) | |
tree | e7cde20ff0542568dfd2234240899196e9dd0e6d /system | |
parent | 98d68962584970bd467ab53b1d74cda46e322b15 (diff) | |
download | luasystem-52562e9986f8f5a4d2dda4333acba110734def0f.tar.gz luasystem-52562e9986f8f5a4d2dda4333acba110734def0f.tar.bz2 luasystem-52562e9986f8f5a4d2dda4333acba110734def0f.zip |
fix linter errors
Diffstat (limited to 'system')
-rw-r--r-- | system/init.lua | 6 |
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) | |||
170 | 170 | ||
171 | local flags = assert(system.getconsoleflags(fh)) | 171 | local flags = assert(system.getconsoleflags(fh)) |
172 | local out = {} | 172 | local out = {} |
173 | for k,v in pairs(sys) do | 173 | for k,v in pairs(system) do |
174 | if type(k) == "string" and k:sub(1,4) == flagtype then | 174 | if type(k) == "string" and k:sub(1,4) == flagtype then |
175 | if flags:has_all_of(v) then | 175 | if flags:has_all_of(v) then |
176 | out[#out+1] = string.format("%10d [x] %s",v:value(),k) | 176 | out[#out+1] = string.format("%10d [x] %s",v:value(),k) |
@@ -207,7 +207,7 @@ function system.listtermflags(fh) | |||
207 | for _, flagtype in ipairs { "iflag", "oflag", "lflag" } do | 207 | for _, flagtype in ipairs { "iflag", "oflag", "lflag" } do |
208 | local prefix = flagtype:sub(1,1):upper() .. "_" -- I_, O_, or L_, the constant prefixes | 208 | local prefix = flagtype:sub(1,1):upper() .. "_" -- I_, O_, or L_, the constant prefixes |
209 | local out = {} | 209 | local out = {} |
210 | for k,v in pairs(sys) do | 210 | for k,v in pairs(system) do |
211 | if type(k) == "string" and k:sub(1,2) == prefix then | 211 | if type(k) == "string" and k:sub(1,2) == prefix then |
212 | if flags[flagtype]:has_all_of(v) then | 212 | if flags[flagtype]:has_all_of(v) then |
213 | out[#out+1] = string.format("%10d [x] %s",v:value(),k) | 213 | out[#out+1] = string.format("%10d [x] %s",v:value(),k) |
@@ -375,4 +375,4 @@ end | |||
375 | 375 | ||
376 | 376 | ||
377 | 377 | ||
378 | return sys | 378 | return system |