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

This commit is contained in:
Joran Dirk Greef
2020-09-19 13:25:43 +02:00
parent 8b030a6599
commit ee5931908e

View File

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