~sircmpwn/hare unlisted

29f1637fa6a300c4e17dca352d709ad9ec0274d3 — Drew DeVault a month ago d061d1b
linux::io_uring: rewrite non-complaint code

The sqe type contains several unions which do not have default values.

Signed-off-by: Drew DeVault <sir@cmpwn.com>
1 files changed, 2 insertions(+), 2 deletions(-)

M linux/io_uring/sqe.ha
M linux/io_uring/sqe.ha => linux/io_uring/sqe.ha +2 -2
@@ 2,8 2,8 @@ use rt;
use types;

fn prep(sq: *sqe, op: op, flags: sqe_flags...) void = {
	// XXX: Is this compatible with the spec?
	*sq = sqe { opcode = op, ... };
	rt::memset(sq, 0, size(sqe));
	sq.opcode = op;
	for (let i = 0z; i < len(flags); i += 1) {
		sq.flags |= flags[i];
	};