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

This commit is contained in:
Asmir A 2023-09-03 22:32:25 +02:00
parent 33db0ea301
commit ffadcffdc1

View File

@ -18,7 +18,7 @@ const Syn = c.input_event{ .type = c.EV_SYN, .code = c.SYN_REPORT, .value = 0, .
var uidev: *align(8) void = undefined; var uidev: *align(8) void = undefined;
fn event_equal(e1: *const c.input_event, e2: *const c.input_event) bool { fn event_equal(e1: *const c.input_event, e2: *const c.input_event) bool {
return (e1.*.type == e2.*.type) and (e1.*.code == e2.*.code) and (e1.*.value == e2.*.value); return (e1.type == e2.type) and (e1.code == e2.code) and (e1.value == e2.value);
} }
fn event_write(event: *const c.input_event) !void { fn event_write(event: *const c.input_event) !void {