From 80aa5876b30ffb663ba7196c27f9a0964717cae4 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Tue, 10 Aug 2021 17:42:41 +0200 Subject: [PATCH] mainloop: minor fixes Signed-off-by: Christian Brauner --- src/lxc/mainloop.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lxc/mainloop.c b/src/lxc/mainloop.c index c5bb5df54..f5388e0a3 100644 --- a/src/lxc/mainloop.c +++ b/src/lxc/mainloop.c @@ -51,7 +51,7 @@ static void delete_handler(struct lxc_async_descr *descr, * generated before and since this is a oneshot handler it * means that it has been deactivated. So the only thing we * need to do is to call the registered cleanup handler and - * remove the handlerfrom the list. + * remove the handler from the list. */ if (!oneshot) ret = __io_uring_disarm(descr, handler); @@ -376,8 +376,8 @@ static int __lxc_mainloop_add_handler_events(struct lxc_async_descr *descr, if (descr->type == LXC_MAINLOOP_IO_URING) { ret = __io_uring_arm(descr, handler, oneshot); } else { - ev.events = events; - ev.data.ptr = handler; + ev.events = events; + ev.data.ptr = handler; ret = epoll_ctl(descr->epfd, EPOLL_CTL_ADD, fd, &ev); } if (ret < 0) -- 2.47.2