From fbccfe840283f05d76f6159567266434a9b63308 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Thu, 18 Jul 2019 15:49:28 -0400 Subject: [PATCH] Build fix: undeclared variable in poll compat MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit No `ipfd` variable exists in the compat_poll_wait function. The author meant to use `idle_pfd`. Reported-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- src/common/compat/compat-poll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/compat/compat-poll.c b/src/common/compat/compat-poll.c index 0220b2785..254ce271e 100644 --- a/src/common/compat/compat-poll.c +++ b/src/common/compat/compat-poll.c @@ -350,7 +350,7 @@ int compat_poll_wait(struct lttng_poll_event *events, int timeout) struct pollfd *idle_pfd = &events->wait.events[idle_pfd_index]; struct pollfd *current_pfd = &events->wait.events[i]; - if (ipfd->revents != 0) { + if (idle_pfd->revents != 0) { swap_pfd = *current_pfd; *current_pfd = *idle_pfd; *idle_pfd = swap_pfd; -- 2.34.1