From 9e68abf2a07c436462cea5fb0d54370e49a1561d Mon Sep 17 00:00:00 2001 From: Asmir A Date: Sun, 3 Sep 2023 22:35:16 +0200 Subject: [PATCH] syntax: in zig use ptr.elem instead of ptr.*.elem --- src/main.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.zig b/src/main.zig index ceb794a..e9b484f 100644 --- a/src/main.zig +++ b/src/main.zig @@ -22,7 +22,7 @@ fn event_equal(e1: *const c.input_event, e2: *const c.input_event) bool { } fn event_write(event: *const c.input_event) !void { - if (c.libevdev_uinput_write_event(@ptrCast(uidev), event.*.type, event.*.code, event.*.value) < 0) { + if (c.libevdev_uinput_write_event(@ptrCast(uidev), event.type, event.code, event.value) < 0) { return error.writeFailed; } }