syntax: in zig use ptr.elem instead of ptr.*.elem

This commit is contained in:
Asmir A 2023-09-03 22:35:16 +02:00
parent ffadcffdc1
commit 9e68abf2a0

View File

@ -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;
}
}