Skip to content

Commit 2750b94

Browse files
committed
Merge branch 'poll-update-trigger' of https://github.com/schlad/liburing
* 'poll-update-trigger' of https://github.com/schlad/liburing: test/poll-update-trigger: fix poll mask byte order
2 parents b7fc10a + a6566d5 commit 2750b94

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

test/poll-update-trigger.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ int main(int argc, char *argv[])
5151
* writeable.
5252
*/
5353
sqe = io_uring_get_sqe(&ring);
54-
io_uring_prep_poll_remove(sqe, 1);
55-
sqe->len = IORING_POLL_UPDATE_EVENTS;
56-
sqe->poll32_events = POLLOUT;
54+
io_uring_prep_poll_update(sqe, 1, 0, POLLOUT, IORING_POLL_UPDATE_EVENTS);
5755
sqe->user_data = 2;
5856
io_uring_submit(&ring);
5957

0 commit comments

Comments
 (0)