fuck me i forgot a semicolon (return)

This commit is contained in:
2026-02-14 23:44:03 -05:00
parent bb829cdd8e
commit b6d1b9398f
2 changed files with 3 additions and 3 deletions

View File

@@ -234,7 +234,7 @@ end
kernel.devfs.data.tty={}
local ctrl,alt = false, false
local function s(bool)
local function serializeBool(bool)
if bool then
return "T"
else
@@ -290,7 +290,7 @@ local function newtty(obj, id, ev)
return icolors[obj.getBackgroundColor()]
end,
gctrl=function()
return s(ctrl)..";"..s(alt)
return serializeBool(ctrl)..";"..serializeBool(alt)
end
}
if mode=="rw" then

View File

@@ -593,7 +593,7 @@ end
function vfs.devctl(fd, method, ...)
if not kernel.currentTask.fd[fd] then error("EBADF") end
if not kernel.currentTask.fd[fd].handle[method] then error("EINVAL") end
kernel.currentTask.fd[fd].handle[method](...)
return kernel.currentTask.fd[fd].handle[method](...)
end
-- Export syscalls