Skip to content

Commit 42a3b60

Browse files
mllkenVexu
authored andcommitted
io_uring: allow for nullable arguments
1 parent 697e22c commit 42a3b60

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/std/os/linux/io_uring.zig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -474,8 +474,8 @@ pub const IO_Uring = struct {
474474
self: *IO_Uring,
475475
user_data: u64,
476476
fd: os.fd_t,
477-
addr: *os.sockaddr,
478-
addrlen: *os.socklen_t,
477+
addr: ?*os.sockaddr,
478+
addrlen: ?*os.socklen_t,
479479
flags: u32,
480480
) !*linux.io_uring_sqe {
481481
const sqe = try self.get_sqe();
@@ -1292,8 +1292,8 @@ pub inline fn __io_uring_prep_poll_mask(poll_mask: u32) u32 {
12921292
pub fn io_uring_prep_accept(
12931293
sqe: *linux.io_uring_sqe,
12941294
fd: os.fd_t,
1295-
addr: *os.sockaddr,
1296-
addrlen: *os.socklen_t,
1295+
addr: ?*os.sockaddr,
1296+
addrlen: ?*os.socklen_t,
12971297
flags: u32,
12981298
) void {
12991299
// `addr` holds a pointer to `sockaddr`, and `addr2` holds a pointer to socklen_t`.

0 commit comments

Comments
 (0)