fixing arguments

This commit is contained in:
Daniel Samson
2026-07-11 21:39:27 +01:00
parent dd93204b44
commit aa0c97353a
2 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -14,8 +14,8 @@ fn writeLine(comptime fmt: []const u8, arguments: anytype) void {
_ = runtime.system.write(std.fmt.bufPrint(&line, fmt, arguments) catch return);
}
pub fn main() void {
const hid = runtime.argument(1);
pub fn main(init: runtime.process.Init) void {
const hid = init.arguments.get(1).?;
if (hid.len == 0) {
_ = runtime.system.write("system/drivers/ps2-bus/keyboard: no HID argument\n");
return;