authorgravatar for joran@ronomon.comJoran Dirk Greef <joran@ronomon.com> 2020-09-19 13:25:43+02:00
committergravatar for joran@ronomon.comJoran Dirk Greef <joran@ronomon.com> 2020-09-19 13:25:59+02:00
logee5931908e9c23403146b18dd3020d57fd3ea10e
tree1f7180f408b43ea87bfb964c26296abaa5ea7b82
parent8b030a65994f7f71a71474c27636744a5aab3e08

@ptrCast fds.ptr to *const c_void for io_uring_register()


1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/io_uring.zig+1-1
...@@ -526,7 +526,7 @@ pub const IO_Uring = struct {...@@ -526,7 +526,7 @@ pub const IO_Uring = struct {
526 const res = linux.io_uring_register(526 const res = linux.io_uring_register(
527 self.fd,527 self.fd,
528 .REGISTER_FILES,528 .REGISTER_FILES,
529 fds.ptr,529 @ptrCast(*const c_void, fds.ptr),
530 @truncate(u32, fds.len)530 @truncate(u32, fds.len)
531 );531 );
532 try check_errno(res);532 try check_errno(res);