examples: Fix compilation

This commit is contained in:
Isaac Freund
2022-04-28 16:18:01 +02:00
parent 5dd0ba638a
commit 8218e21bc6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ pub fn main() !void {
const registry = try display.getRegistry();
var foo: u32 = 42;
registry.setListener(*u32, listener, &foo);
_ = try display.roundtrip();
if (display.roundtrip() != .SUCCESS) return error.RoundtripFailed;
}
fn listener(_: *wl.Registry, event: wl.Registry.Event, data: *u32) void {
+1 -1
View File
@@ -8,7 +8,7 @@ pub fn main() !void {
var running: bool = true;
registry.setListener(*bool, listener, &running);
while (running) {
_ = try display.dispatch();
if (display.roundtrip() != .SUCCESS) return error.RoundtripFailed;
}
}