commit ee5931908e9c23403146b18dd3020d57fd3ea10e (tree)
parent 8b030a65994f7f71a71474c27636744a5aab3e08
Author: Joran Dirk Greef <joran@ronomon.com>
Date: Sat, 19 Sep 2020 13:25:43 +0200
@ptrCast fds.ptr to *const c_void for io_uring_register()
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/std/io_uring.zig b/lib/std/io_uring.zig
@@ -526,7 +526,7 @@ pub const IO_Uring = struct {
const res = linux.io_uring_register(
self.fd,
.REGISTER_FILES,
- fds.ptr,
+ @ptrCast(*const c_void, fds.ptr),
@truncate(u32, fds.len)
);
try check_errno(res);