From: Christian Brauner Date: Tue, 10 Aug 2021 15:42:41 +0000 (+0200) Subject: mainloop: minor fixes X-Git-Tag: lxc-5.0.0~116^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80aa5876b30ffb663ba7196c27f9a0964717cae4;p=thirdparty%2Flxc.git mainloop: minor fixes Signed-off-by: Christian Brauner --- 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)