diff options
-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) 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 |