summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/register.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/register.c b/src/register.c
index 1f2c409..a1b1a22 100644
--- a/src/register.c
+++ b/src/register.c
@@ -248,7 +248,7 @@ int io_uring_register_iowq_aff(struct io_uring *ring, size_t cpusz,
int io_uring_unregister_iowq_aff(struct io_uring *ring)
{
return ____sys_io_uring_register(ring->ring_fd,
- IORING_REGISTER_IOWQ_AFF, NULL, 0);
+ IORING_UNREGISTER_IOWQ_AFF, NULL, 0);
}
int io_uring_register_iowq_max_workers(struct io_uring *ring, unsigned int *val)