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

View File

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